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)
|
def fast_write(io, str)
|
||||||
n = 0
|
n = 0
|
||||||
loop do
|
while true
|
||||||
begin
|
begin
|
||||||
n = io.syswrite str
|
n = io.syswrite str
|
||||||
rescue Errno::EAGAIN, Errno::EWOULDBLOCK
|
rescue Errno::EAGAIN, Errno::EWOULDBLOCK
|
||||||
|
|
Loading…
Add table
Reference in a new issue