Skip to content

Conversation

@mohamedhafez
Copy link
Contributor

@mohamedhafez mohamedhafez commented Nov 10, 2025

Resolves #94

equivalent change to what @osyoyu did in ruby/net-http#224

Some justification copied over from that PR's description:

The builtin timeout in TCPSocket.open is better in several ways. First, it does not rely on a separate Ruby Thread for monitoring Timeout (which is what the timeout library internally does). Also, it is compatible with Ractors, since it does not rely on Mutexes (which is also what the timeout library does).

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.

Replace Timeout.timeout with TCPSocket.open(open_timeout:) when available

1 participant