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