summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorKJ Tsanaktsidis <ktsanaktsidis@zendesk.com>2024-09-13 17:40:30 +1000
committerTakashi Kokubun <takashikkbn@gmail.com>2024-09-23 09:25:10 -0700
commit5b6009870dff883a8e71a05e60f175cea1d00d55 (patch)
treef6726cb7f3a00e8967a789a0264ce2dfe5274ff4 /test/ruby
parent4e59e7d35fbd6ff87f63cd0aa5d6a2f923323fee (diff)
Ensure fiber scheduler is woken up when close interrupts read
If one thread is reading and another closes that socket, the close blocks waiting for the read to abort cleanly. This ensures that Ruby is totally done with the file descriptor _BEFORE_ we tell the OS to close and potentially re-use it. When the read is correctly terminated, the close should be unblocked. That currently works if closing is happening on a thread, but if it's happening on a fiber with a fiber scheduler, it does NOT work. This patch ensures that if the close happened in a fiber scheduled thread, that the scheduler is notified that the fiber is unblocked. [Bug #20723]
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions