From: Bryan Duxbury Date: Wed, 8 Jun 2011 22:53:11 +0000 (+0000) Subject: THRIFT-1193. rb: Potential infinite loop in nonblocking_server X-Git-Tag: 0.7.0~75 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=b7c69711e70e1337d0587ac3b50b283ca860a19d;p=common%2Fthrift.git 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 --- 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