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
|
wrote = @engine.write data
|
||||||
enc = @engine.extract
|
enc = @engine.extract
|
||||||
|
|
||||||
if enc
|
while enc
|
||||||
@socket.syswrite enc
|
@socket.write enc
|
||||||
|
enc = @engine.extract
|
||||||
end
|
end
|
||||||
|
|
||||||
need -= wrote
|
need -= wrote
|
||||||
|
|
Loading…
Reference in a new issue