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

select_random fails because of wrong error returned in _refuses_connection #4

Open
lecchri1 opened this issue Feb 19, 2018 · 1 comment

Comments

@lecchri1
Copy link

It returns error no 10035 which is Resource temporarily unavailable.
It is the result for any attempts on available ports.
Skipping _refuses_connection makes a successful connection.
Tested on Windows 10 x64

@asavchkov
Copy link

The same thing on Windows Server 2019. Setting the timeout in

sock.settimeout(1)

to a larger value (say 5 sec) fixes the issue. Can we change it from 1 to 5 sec in the code or make it configurable? Either option would be fine for me.

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

No branches or pull requests

3 participants