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 IO#timeout attribute and use it for blocking IO operations. #5653

Merged
merged 6 commits into from Oct 7, 2022

Conversation

ioquatix
Copy link
Member

@ioquatix ioquatix commented Mar 14, 2022

@ioquatix ioquatix force-pushed the io-timeout branch 9 times, most recently from 5212173 to 2361573 Compare September 14, 2022 00:32
@nobu
Copy link
Member

nobu commented Sep 14, 2022

Consider the backward compatibility of ruby/openssl.

@ioquatix ioquatix force-pushed the io-timeout branch 2 times, most recently from 2f8b0df to 2e57446 Compare September 22, 2022 01:19
@ioquatix ioquatix force-pushed the io-timeout branch 2 times, most recently from 6438434 to 32e1a4f Compare October 6, 2022 10:15
@ioquatix ioquatix merged commit e4f91bb into ruby:master Oct 7, 2022
@ioquatix ioquatix deleted the io-timeout branch October 7, 2022 08:48

/**
* Set the timeout associated with the specified io object. This timeout is
* used as a best effort timeout to prevent operations from blocking forever.
Copy link
Contributor

Choose a reason for hiding this comment

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

I recommend to denote examples like "socket read/write".

Copy link
Contributor

Choose a reason for hiding this comment

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

ah, it's not a description for the method.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry, I don't fully understand your feedback, but I'm happy to improve the documentation.

@ioquatix
Copy link
Member Author

ioquatix commented Oct 7, 2022

I have a follow up PR to improve the usage for backwards compatible extensions: #6507

@ioquatix
Copy link
Member Author

ioquatix commented Oct 7, 2022

Update to openssl gem: ruby/openssl#547

@@ -14,14 +14,22 @@
}
end

ruby_version_is "3.0" do
ruby_version_is "3.0"..."3.1" do
Copy link
Member

Choose a reason for hiding this comment

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

Should have been ..."3.2", fixed in ruby/spec@c3677cf

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 participants