Bug #4535
closed[PATCH] fix race in blocking send_io/recv_io
Description
=begin
There is no need to call select() before entering a blocking I/O
region since other threads may run. select() cannot guarantee
readability if the IO is shared across different
threads/processes. Furthermore, we actually need to select() on
EAGAIN/EINTR since the functions are intended to be blocking so
we move the select() calls into the retry loop.
=end
Files
Updated by normalperson (Eric Wong) over 13 years ago
- File 0002-test-socket-test_unix.rb-test-case-for-bug-4535.patch 0002-test-socket-test_unix.rb-test-case-for-bug-4535.patch added
=begin
I managed to get a reproducible test case working on a machine I have access to.
=end
Updated by normalperson (Eric Wong) over 13 years ago
Eric Wong normalperson@yhbt.net wrote:
Bug #4535: [PATCH] fix race in blocking send_io/recv_io
http://redmine.ruby-lang.org/issues/4535
Btw, this was pushed this out to my git repo for convenience, I've
just rebased and repushed:
git pull git://bogomips.org/ruby fix-unix-send-recv-io
I really look forward to this fix getting into trunk and backported to
1.9.2, thanks!
--
Eric Wong
Updated by normalperson (Eric Wong) over 13 years ago
Eric Wong normalperson@yhbt.net wrote:
Bug #4535: [PATCH] fix race in blocking send_io/recv_io
http://redmine.ruby-lang.org/issues/4535
Ping? This may become a big issue for some apps I'm working on.
--
Eric Wong
Updated by ko1 (Koichi Sasada) over 13 years ago
- Status changed from Open to Assigned
- Assignee set to kosaki (Motohiro KOSAKI)
Updated by akr (Akira Tanaka) over 13 years ago
- Status changed from Assigned to Closed