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

rescue IO::TimeoutError raised by Ruby since 3.2.0 on blocking reads/writes #973

Merged
merged 4 commits into from
Sep 25, 2023

Conversation

petergoldstein
Copy link
Owner

One scenario in which this happens is when a firewall silently drops connections between clients and memcached instances.

With this patch the client reopens the connection and the request succeeds. Without it, IO:TimeoutError is raised for the application to handle which deviates from Dalli behavior under Ruby 3.1 and earlier.

Addresses #967 and fixes the remaining lint in #968

skaes and others added 4 commits September 25, 2023 08:57
…writes

One scenario in which this happens is when a firewall silently drops
connections between clients and memcached instances.

With this patch the client reopens the connection and the request succeeds.
Without it, IO:TimeoutError is raised for the application to handle which
deviates from Dalli behavior under Ruby 3.1 and earlier.
@petergoldstein
Copy link
Owner Author

Thanks @skaes !

@petergoldstein petergoldstein merged commit 868f7a7 into main Sep 25, 2023
36 checks passed
@petergoldstein petergoldstein deleted the xing-rescue-io-timeout-error branch September 25, 2023 21:16
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