http_response: small speedup by eliminating loop
commit588577cc4852f9dce1bd011451399ce96c00023c
authorEric Wong <normalperson@yhbt.net>
Tue, 21 Apr 2009 18:14:52 +0000 (21 11:14 -0700)
committerEric Wong <normalperson@yhbt.net>
Tue, 21 Apr 2009 18:16:37 +0000 (21 11:16 -0700)
tree7765f8228513d868507935e5cbfad4adb99eb7ae
parentb031b9d2cb1bd0434ce2891ce20a65a5b5b29796
http_response: small speedup by eliminating loop

This avoids creating yet another binding.  socket.syswrite()
should really only be called once since we use blocking sockets,
but just in case, we emulate a do+while loop with begin+while
lib/unicorn/http_response.rb