-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add a way for configurable socket timeouts #1430
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
base: master
Are you sure you want to change the base?
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.
The code itself is LGTM. I have to give this another thought if it's best to better document to access the stream property directly as user to do these things or to add "native" option instead.
I would be happy about feedback from others about this!
@BridgeAR I would support putting this in because you would need to access the the stream property directly on a |
👍 for @flippmoke comment @BridgeAR |
Bump on this? |
@flippmoke LGTM. Please resolve the conflicts with master, and I'll merge it. |
aec84e3
to
b867eef
Compare
@leibale updated the branch, there are some failures but do not seem to be related to my changes. |
@flippmoke please fix those eslint errors: |
@leibale sorry I missed those pushed now |
Hi @leibale @flippmoke @BridgeAR |
@dmaier-redislabs Any chance we can get this (or something similar) merged soon? |
@bobymicroby @elena-kolevska Can you please take a look and see if this can be merged before the next release? |
@philon-msft The code base has evolved significantly during the last few years, so this PR will not be easily mergeable. We recognize the need for such functionality (we have added this feature to ioredis recently), but we also recognize that such features need to be implemented carefully (see here a subsequent fix for connection instability caused by the socket timeout feature). We are going to add this feature to the client with a new PR. |
Thanks @bobymicroby, will the new PR make it into the next release? |
@philon-msft probably, but cannot make commitments ; will ping you if there is movement on that |
Hi, this is the new PR for this change |
Pull Request check-list
Please make sure to review and check all of these items:
npm test
pass with this change (including linting)?NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.
Description of change
Added a way for connected sockets to timeout. This is important for situations where a connected server stops responding and the connection should close in a reasonable time.