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

doc: add comments to ConnWriteTimeout as a request timeout #469

Merged
merged 2 commits into from
Feb 16, 2024

Conversation

proost
Copy link
Contributor

@proost proost commented Feb 16, 2024

previous disccusion: #468

Add comments that ConnWriteTimeout can be request timeout to commands

rueidis.go Outdated
// ConnWriteTimeout is applied net.Conn.SetWriteDeadline and periodic PING to redis
// ConnWriteTimeout is read/write timeout for each connection. If specified,
// it is used to control the maximum duration waits for responses to pipeline commands.
// Also, ConnWriteTimeout is applied net.Conn.SetWriteDeadline and periodic PING to redis
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// Also, ConnWriteTimeout is applied net.Conn.SetWriteDeadline and periodic PING to redis
// Also, ConnWriteTimeout is applied net.Conn.SetDeadline and periodic PING to redis

Sorry, the original comment was wrong. It should be SetDeadline.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

15a95c5. Yeap. you're right!

@proost proost requested a review from rueian February 16, 2024 11:52
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5a8fa52) 95.65% compared to head (15a95c5) 95.66%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #469   +/-   ##
=======================================
  Coverage   95.65%   95.66%           
=======================================
  Files          63       63           
  Lines       31765    31765           
=======================================
+ Hits        30384    30387    +3     
+ Misses       1185     1183    -2     
+ Partials      196      195    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rueian rueian merged commit 3d21559 into redis:main Feb 16, 2024
1 check passed
@rueian
Copy link
Collaborator

rueian commented Feb 16, 2024

Merged! Thanks @proost!

@proost proost deleted the doc-connwritetimeout-detail branch February 18, 2024 08:52
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.

None yet

3 participants