diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dtas/unix_accepted.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/dtas/unix_accepted.rb b/lib/dtas/unix_accepted.rb index e683fb2..cb7bdda 100644 --- a/lib/dtas/unix_accepted.rb +++ b/lib/dtas/unix_accepted.rb @@ -18,9 +18,12 @@ class DTAS::UNIXAccepted # :nodoc: buffered = @send_buf.size if buffered == 0 case rv = sendmsg_nonblock(msg) - when :wait_writable then @send_buf << msg + when :wait_writable + @send_buf << msg + rv + else + :wait_readable end - rv else # buffered > 0 @send_buf << msg :wait_writable |