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

Add write timeout #2843

Merged
merged 10 commits into from
Mar 6, 2024
Merged

Conversation

comandeo-mongo
Copy link
Contributor

No description provided.

@comandeo-mongo comandeo-mongo marked this pull request as ready for review March 4, 2024 15:12
@comandeo-mongo comandeo-mongo requested a review from jamis March 4, 2024 16:44
lib/mongo/protocol/message.rb Outdated Show resolved Hide resolved
lib/mongo/socket.rb Outdated Show resolved Hide resolved
lib/mongo/socket.rb Outdated Show resolved Hide resolved
comandeo-mongo and others added 3 commits March 5, 2024 13:25
Co-authored-by: Jamis Buck <jamisbuck@gmail.com>
Co-authored-by: Jamis Buck <jamisbuck@gmail.com>
@comandeo-mongo comandeo-mongo requested a review from jamis March 5, 2024 12:26
Copy link
Contributor

@jamis jamis left a comment

Choose a reason for hiding this comment

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

❤️ Very nice! Just one bit with some lines that I don't think are necessary any more, but other than that I think it's good to merge. 👍

lib/mongo/protocol/message.rb Outdated Show resolved Hide resolved
if timeout = options[:socket_timeout]
read_options[:timeout] = timeout
read_options = options.slice(:timeout, :socket_timeout)
%i[timeout socket_timeout].each do |key|
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think these lines are still necessary...

@comandeo-mongo comandeo-mongo merged commit 752c1f4 into mongodb:csot Mar 6, 2024
314 of 336 checks passed
@comandeo-mongo comandeo-mongo deleted the set-socket-timeouts branch March 6, 2024 08:54
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.

2 participants