THRIFT-1193. rb: Potential infinite loop in nonblocking_server
authorBryan Duxbury <bryanduxbury@apache.org>
Wed, 8 Jun 2011 22:53:11 +0000 (22:53 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Wed, 8 Jun 2011 22:53:11 +0000 (22:53 +0000)
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

index 911d6d5..740f341 100644 (file)
@@ -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