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

feat: Add TLS Handshake timeout support #530

Merged
merged 3 commits into from
Nov 19, 2020
Merged

feat: Add TLS Handshake timeout support #530

merged 3 commits into from
Nov 19, 2020

Conversation

stevenh
Copy link
Collaborator

@stevenh stevenh commented Oct 28, 2020

Add support for configuring a timeout for TLS Handshake call via DialTLSHandshakeTimeout DialOption. If no option is specified then the default timeout is 10 seconds.

Also:

  • Add a default connect timeout of 30 seconds matching that of net/http.

Fixes #509

@stevenh stevenh changed the title fix: Add support TLS Handshake timeout feat: Add TLS Handshake timeout support Oct 28, 2020
Add support for configuring a timeout for TLS Handshake call via
DialTLSHandshakeTimeout DialOption. If no option is specified then the
default timeout is 10 seconds.

Also:
* Add a default connect timeout of 30 seconds matching that of net/http.

Fixes #509
Copy link

@mdanzinger mdanzinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, small comment on the use of a buffered channel.

stevenh and others added 2 commits November 13, 2020 10:22
Co-authored-by: Dan Richards <[email protected]>
Cleanup timer defer to avoid second test and document reasons for
buffered channel.
@stevenh
Copy link
Collaborator Author

stevenh commented Nov 13, 2020

@danmrichards I have cleaned up the timer cleanup in a slightly different way, could you re-review please.

@stevenh stevenh merged commit c4a82d6 into master Nov 19, 2020
@stevenh stevenh deleted the tls-timeout branch November 19, 2020 21:00
@razor-1
Copy link

razor-1 commented Nov 19, 2020

great, thanks for adding this! it would be nice to have a new tag published some time soon

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

Successfully merging this pull request may close these issues.

GetContext never returns in case of TLS setting is ON for Redis Server
4 participants