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

Use 'while true' instead of 'loop' for perf

This commit is contained in:
Evan Phoenix 2013-03-18 16:44:38 -07:00
parent b61a372ada
commit cf44fa7e32

View file

@ -596,7 +596,7 @@ module Puma
def fast_write(io, str)
n = 0
loop do
while true
begin
n = io.syswrite str
rescue Errno::EAGAIN, Errno::EWOULDBLOCK