-
Notifications
You must be signed in to change notification settings - Fork 268
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
fix: set default network timeout as Duration::MAX
instead of zero.
#949
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use set_keepalive
method instead of passing value to new()
? ( like change suggested in the issue comment )
also, we should add comment on top of it mentioning why we are setting it to connection_timeout_ms.
I find it the most logical to pass to the new. Are there some reasons you don't want this? |
|
As far as I can see, Maybe having |
fair point, ideally there should be different config entry but would be too much, and if we want to use connection_timeout_ms we should round it up to bigger value, like
reason for using but using so yeah, let's go with |
config.connection_timeout_ms
instead of zero.Duration::MAX
instead of zero.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the PR @Ddystopia ! 🚀
Type of change
Bug fix (non-breaking change which fixes an issue)
Checklist:
cargo fmt
CHANGELOG.md
if it's relevant to the users of the library. If it's not relevant mention why.Closes #945.
Closes #948.