Revision: 14759
Author: adrian.chadd
Date: Mon Aug 23 20:11:58 2010
Log: Unlock the http port entry after the conn is destroyed.

This wouldn't leak memory but it may cause issues if your proxy handles > (signed int)
requests. :)


http://code.google.com/p/lusca-cache/source/detail?r=14759

Modified:
 /branches/LUSCA_HEAD/src/client_side_conn.c

=======================================
--- /branches/LUSCA_HEAD/src/client_side_conn.c Mon Apr 19 22:04:35 2010
+++ /branches/LUSCA_HEAD/src/client_side_conn.c Mon Aug 23 20:11:58 2010
@@ -32,6 +32,7 @@
     pconnHistCount(0, connState->nrequests);
     if (connState->pinning.fd >= 0)
        comm_close(connState->pinning.fd);
+    cbdataUnlock(connState->port);
     cbdataFree(connState);
     clientside_num_conns--;
 #ifdef _SQUID_LINUX_

--
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en.

Reply via email to