Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource Leak: If httpclient establishes two connections to the same server in parallel, one of these connections will be leaked. #29

Closed
xb opened this issue Feb 24, 2010 · 2 comments
Labels

Comments

@xb
Copy link

xb commented Feb 24, 2010

That is, these connections will stay in CLOSE_WAIT state forever (after the server side closes the connection) and httpclient will never close these connections. If this case (two connections to the same server) happen repeatedly, there is a resource like (e.g. a file descriptor leak) and httpclient will exhaust all available file descriptors and then fail miserably.

@nahi
Copy link
Owner

nahi commented Dec 13, 2010

xb@d601390

@nahi
Copy link
Owner

nahi commented Dec 14, 2010

Do not leak sessions (and thus filedescriptors and TCP connections) from the pool. Fix bug http://github.com/nahi/httpclient/issues/issue/29 .

closed by e5d0e80.
Signed-off-by: Hiroshi Nakamura <nahi@ruby-lang.org>

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants