From b7c69711e70e1337d0587ac3b50b283ca860a19d Mon Sep 17 00:00:00 2001 From: Bryan Duxbury Date: Wed, 8 Jun 2011 22:53:11 +0000 Subject: [PATCH] THRIFT-1193. rb: Potential infinite loop in nonblocking_server Patch: Ilya Maykov git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1133593 13f79535-47bb-0310-9956-ffa450edef68 --- lib/rb/lib/thrift/server/nonblocking_server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rb/lib/thrift/server/nonblocking_server.rb b/lib/rb/lib/thrift/server/nonblocking_server.rb index 911d6d53..740f3417 100644 --- a/lib/rb/lib/thrift/server/nonblocking_server.rb +++ b/lib/rb/lib/thrift/server/nonblocking_server.rb @@ -49,7 +49,7 @@ module Thrift rescue Errno::EBADF => e # In Ruby 1.9, calling @server_transport.close in shutdown paths causes the select() to raise an # Errno::EBADF. If this happens, ignore it and retry the loop. - next + break end next if rd.nil? socket = @server_transport.accept -- 2.17.1