1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Handle all engine data when possible. Fixes #251.

This commit is contained in:
Evan Phoenix 2013-06-17 23:20:54 -07:00
parent 7aeab6698d
commit d996daa15a

View file

@ -52,8 +52,9 @@ module Puma
wrote = @engine.write data
enc = @engine.extract
if enc
@socket.syswrite enc
while enc
@socket.write enc
enc = @engine.extract
end
need -= wrote