-
Notifications
You must be signed in to change notification settings - Fork 378
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
Allow configurable timeout on Connection #1065
base: main
Are you sure you want to change the base?
Allow configurable timeout on Connection #1065
Conversation
What do you think @sonnyp can we get this merged and a release made? |
Thanks for the contribution. Can you help me understand why you need this? |
@sonnyp well, it seems like the groundwork was already laid for this, just a matter of giving the user the ability to set longer timeouts for connect. Imagine bad latency or unresponsive/slow server response. The default of 2s might not be enough time. |
For more context, in sockethub, we are adding the ability to allow for setting a custom a connect timeout if needed, as everyones network conditions vary. Done for IRC, and HTTP Fetches, just need the ability for XMPP. sockethub/sockethub#894 |
Thanks for the context.
A bit more work/testing is needed |
@sonnyp you're right, it could be simplified. I was trying to go along with the way the |
ping @sonnyp this PR is ready for another look, I've addressed your concerns. |
The framework for passing in options was already there, I just added the possibility for a user-defined timeout.