diff --git a/lib/puma/minissl.rb b/lib/puma/minissl.rb index c50f0701..d43d6256 100644 --- a/lib/puma/minissl.rb +++ b/lib/puma/minissl.rb @@ -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