rev/client: more aggressive non-blocking write
commit0283928fca45a012b31662b30b49990dac2aae18
authorEric Wong <normalperson@yhbt.net>
Tue, 6 Jul 2010 08:53:54 +0000 (6 08:53 +0000)
committerEric Wong <normalperson@yhbt.net>
Tue, 6 Jul 2010 08:53:54 +0000 (6 08:53 +0000)
tree06a84a762ec4a65894b77cd0e8e17cce2066f0d1
parent8b65858a864aa0ecfa24ccf8f910c36af0ec1ad6
rev/client: more aggressive non-blocking write

non-blocking write() may cause kernel buffers to be allocated
behind the scenes, so retry the write() even if it's short
because it may succeed the next time around.
lib/rainbows/rev/client.rb