event_machine: ResponseChunkPipe style cleanup
commitcc18035c5105751a3e67a8e449ee0021fd313ea9
authorEric Wong <normalperson@yhbt.net>
Mon, 19 Jul 2010 10:09:55 +0000 (19 10:09 +0000)
committerEric Wong <normalperson@yhbt.net>
Tue, 20 Jul 2010 00:04:25 +0000 (19 17:04 -0700)
tree6da4f063accc4bcffee9bed88e8eb0d10a7477d6
parentb3278b45bd5e31d97ce7b8625585692091ff4755
event_machine: ResponseChunkPipe style cleanup

No need to double up on begin blocks since we know @client.write
won't raise exceptions @io.read_nonblock does.  Also prefer
@client.write to @client.send_data since it looks more in
line with other IO interfaces.
lib/rainbows/event_machine.rb