-
Notifications
You must be signed in to change notification settings - Fork 28
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
Net::HTTP::NB blocks on connect() #68
Comments
You may multiplex sockets for reading with Net::HTTP::NB, but not for dns lookup, connecting or writing. |
Would you be amenable to considering a patch to make it non-blocking for connections, at least? |
LWP is a blocking HTTP client, and Net::HTTP exists solely for it. |
Net::HTTP’s documentation doesn’t say it’s specifically for LWP; in fact, the only mention of LWP at all is in the SEE ALSO section. 20+ CPAN distributions depend on Net::HTTP. On what basis, then, do you assert that the only supported caller is LWP? If this is indeed the case, though, should NB.pm be deprecated, and Net::HTTP’s documentation updated to disavow support for any caller other than LWP? |
Saw this in an strace:
This comes from just calling:
Is this a bug, or a known part of the design? Is there any way to get a non-blocking connect()?
The text was updated successfully, but these errors were encountered: