diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-17 02:42:59 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-17 02:42:59 +0000 |
commit | 846b1c35e5c6d0ab787b9415ea586ccc843df562 (patch) | |
tree | 033393758050e8f54f1a965f566f7c3157cafd9d /ChangeLog | |
parent | 762ed0d68c7cfb96c8e4c1a67030a01e7825c9a5 (diff) | |
download | ruby-846b1c35e5c6d0ab787b9415ea586ccc843df562.tar.gz |
* win32/win32.c (rb_w32_select): select for socket didn't work.
this caused deadlock in drb test. this happened because GetFileType
for socket handle returns FILE_TYPE_PIPE. Of course, it's not a
pipe. So socket handle didn't reach winsock's select function.
* win32/win32.c (rb_w32_select): read for pipe still kept brocking
even if writer handle was closed.
r,w = IO.pipe
Thread.new {
sleep 3; puts "------- 1"
w.puts("foo")
sleep 3; puts "------- 2"
w.puts("boo")
sleep 3; puts "------- 3"
w.close
}
until r.eof? # should break by w.close but didn't.
puts r.gets
end
* win32/win32.c (rb_w32_select): temprary reverted console support
but it'll be back soon.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -1,3 +1,31 @@ +Sat Sep 17 11:24:16 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> + + * win32/win32.c (rb_w32_select): select for socket didn't work. + this caused deadlock in drb test. this happened because GetFileType + for socket handle returns FILE_TYPE_PIPE. Of course, it's not a + pipe. So socket handle didn't reach winsock's select function. + + * win32/win32.c (rb_w32_select): read for pipe still kept brocking + even if writer handle was closed. + + r,w = IO.pipe + + Thread.new { + sleep 3; puts "------- 1" + w.puts("foo") + sleep 3; puts "------- 2" + w.puts("boo") + sleep 3; puts "------- 3" + w.close + } + + until r.eof? # should break by w.close but didn't. + puts r.gets + end + + * win32/win32.c (rb_w32_select): temprary reverted console support + but it'll be back soon. + Sat Sep 17 10:42:13 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> * ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string and bg_eval_string |