You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
according to http.c:1886 in libevent source we should be able to set outbound 'Connection: close' headers in order to circumvent the HTTP 1.1 related leaks we encounter.
danger, danger!!! this is a good opt for low volume or simpleq mget
clients. however, it will increase latency, cpu and sockets in timed wait (
typically 2 * the MSL ).
ok the situation is becoming clearer: the bug with libevent-1.4 is that if the connection is keep-alive and the client closes it, it doesn't close the fd and clean up the resources related to the connection. (I was under the impression that HTTP/1.1 / keep-alive was generally buggy and we didn't really use it)
Activity
ploxiln commentedon Apr 12, 2012
excellent minimal fix (if it works)
jayridge commentedon Apr 12, 2012
danger, danger!!! this is a good opt for low volume or simpleq mget
clients. however, it will increase latency, cpu and sockets in timed wait (
typically 2 * the MSL ).
ploxiln commentedon Apr 12, 2012
ok the situation is becoming clearer: the bug with libevent-1.4 is that if the connection is keep-alive and the client closes it, it doesn't close the fd and clean up the resources related to the connection. (I was under the impression that HTTP/1.1 / keep-alive was generally buggy and we didn't really use it)
ploxiln commentedon Apr 12, 2012
references for libevent-1.4 keep-alive fix strategies:
http://www.mail-archive.com/libevent-users@monkey.org/msg01721.html
http://www.mail-archive.com/libevent-users@monkey.org/msg01722.html
ploxiln commentedon May 9, 2012
btw, my latest fix, in libevent-1.4.14b:
mreiferson commentedon May 12, 2012
Closing (we're attempting to push libevent changes upstream)