Change stream writes to be non-blocking, this has been pretty heavily tested over the last couple days, and should preserve the original behavior as well. This fixes a deadlock in Ruby in certain conditions

git-svn-id: file:///home/svn/framework3/trunk@10306 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2010-09-13 14:39:17 +00:00
parent fa38a19ada
commit 7ccf4e2f11
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ module Stream
next
end
data = buf[0, 32768]
sent = fd.syswrite( data )
sent = fd.write_nonblock( data )
if sent > 0
total_sent += sent
buf[0, sent] = ""