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:
parent
7aeab6698d
commit
d996daa15a
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue