-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Request: Connection Timeout Parameter #949
Comments
I have encountered the same problem. When connecting to a target address, which is not in the current network subnet, the socket connect timeout of the OS comes into play. A runtime configurable timeout would be a great solution. Best Regards Erwin |
This is my big problem right now, it took my application out of service for a very long time. Any way for working around this problem? I am working on Linux environment. Thanks, |
Hi @congngale ,
This sets an option on the socket to limit the number of SYN-retries. It's not portable and also not configurable but works for us. Maybe it's an option for you as well. Regards, |
Hi,
Have there been any plans to add a connection timeout parameter to the method
net__socket_connect()
?Without a timeout the connect may take very long in case the target-address is wrongly configured, e.g. when it's pointing to a firewalled host/port.
The solution I came up with so far is Linux specific, so it's not a candidate for a PR.
Best regards,
Matthias
The text was updated successfully, but these errors were encountered: