From cf44fa7e3267d6b90a6187b1477fcdd3235517d5 Mon Sep 17 00:00:00 2001 From: Evan Phoenix Date: Mon, 18 Mar 2013 16:44:38 -0700 Subject: [PATCH] Use 'while true' instead of 'loop' for perf --- lib/puma/server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puma/server.rb b/lib/puma/server.rb index 7fb1a58f..4b85de21 100644 --- a/lib/puma/server.rb +++ b/lib/puma/server.rb @@ -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