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

socket.connect blocks indefinitely in non-blocking mode #382

Open
nikneym opened this issue Jun 28, 2022 · 3 comments
Open

socket.connect blocks indefinitely in non-blocking mode #382

nikneym opened this issue Jun 28, 2022 · 3 comments

Comments

@nikneym
Copy link

nikneym commented Jun 28, 2022

socket.connect or connect method blocks indefinitely when network speed or bandwith is low. It also blocks when DNS resolution fails or takes some time. Probably gets blocked at socket_waitfd, not sure if the same is happening on Windows, just checked usocket.c.

@alerque
Copy link
Member

alerque commented Jun 28, 2022

Thanks for the report. Unfortunately I am unable to invest much of my spare time in developing this right now, but I thought I'd drop a comment to say that I am available enough to facilitate PRs that fix bugs or add features, so if anybody has time to scratch this itch and fix/improve the library there should be a path to getting it merged and released.

@nikneym
Copy link
Author

nikneym commented Jul 4, 2022

I've made this to deal with the problem in the moment, leaving it here for people who may encounter a similar problem.

@alerque
Copy link
Member

alerque commented Nov 10, 2023

Any overlap with #190 and/or #278 here?

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

No branches or pull requests

2 participants