Skip to content

[FOUND-112] Close sockets on Timeout::Error within #get_multi#33

Open
mattwd7 wants to merge 2 commits intobraze-mainfrom
FOUND-112-avoid-timeout-corruption-get-multi
Open

[FOUND-112] Close sockets on Timeout::Error within #get_multi#33
mattwd7 wants to merge 2 commits intobraze-mainfrom
FOUND-112-avoid-timeout-corruption-get-multi

Conversation

@mattwd7
Copy link

@mattwd7 mattwd7 commented Feb 23, 2026

#20 covers corruption caused by Timeout::Error which is raised during a server.request by closing the open socket and not leaving stale data for the next operation. It does not cover Timeout::Error raised during a get_multi. This is b/c get_multi calls perform with a block, causing server.request to be skipped altogether.

To address ^this, #get_multi_yielder has been updated to rescue Timeout::Error and close all open sockets before re-raising

@mattwd7 mattwd7 changed the title [FOUND-112] Close sockets on Timeout::Error within get_multi [FOUND-112] Close sockets on Timeout::Error within #get_multi Feb 23, 2026
@mattwd7 mattwd7 marked this pull request as ready for review February 24, 2026 16:11
@mattwd7 mattwd7 requested a review from a team as a code owner February 24, 2026 16:11
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