summaryrefslogtreecommitdiff
path: root/test/did_you_mean
diff options
context:
space:
mode:
authorLars Kanis <lars@greiz-reinsdorf.de>2021-08-25 12:03:35 +0200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2021-08-26 21:49:12 +1200
commit9c0582704f63f85aab112c8a9cff344fc3df62ca (patch)
tree90876572f40ce8957f020d5645e0002041ed1f1a /test/did_you_mean
parenta2ad0cb7b44a0cb87bd552b312a70bc46016a95f (diff)
Fix example fiber scheduler reg. writable events
There were two issues: 1. When an IO object is waiting for writablility only (as in test_tcp_accept) the selected hash is empty. Therefore selected[fiber] returns nil but needs to default to 0 in order to be or'ed with IO::WRITABLE. 2. When an IO object is waiting for read- or writability (as in test_tcp_connect), but only one of these two events arrive, the Fiber and IO object need to be removed from the other `@readable` or `@writable` list.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4777
Diffstat (limited to 'test/did_you_mean')
0 files changed, 0 insertions, 0 deletions