[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] cleanup the neon socket when closing the ra_session

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2007-07-05 21:00:12 CEST

in ra_open(), the ne_sock_init() is called. But the ne_sock_exit() isn't
called when the session is closed. The attached patch fixes this.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net

[[[
Clean up the neon socket after using it.
* subversion/libsvn_ra_neon/session.c
  (cleanup_session): call ne_sock_exit()
]]]
Index: subversion/libsvn_ra_neon/session.c
===================================================================
--- subversion/libsvn_ra_neon/session.c (revision 25655)
+++ subversion/libsvn_ra_neon/session.c (working copy)
@@ -50,6 +50,7 @@
 static apr_status_t cleanup_session(void *sess)
 {
   ne_session_destroy(sess);
+ ne_sock_exit();
   return APR_SUCCESS;
 }
 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jul 5 21:00:17 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.