diff options
author | Bryan Duxbury <bryanduxbury@apache.org> | 2011-06-08 22:53:11 +0000 |
---|---|---|
committer | Bryan Duxbury <bryanduxbury@apache.org> | 2011-06-08 22:53:11 +0000 |
commit | b7c69711e70e1337d0587ac3b50b283ca860a19d (patch) | |
tree | 9cd87ad5391189ec8512eb0546afbe6361297d2f /lib/rb/lib | |
parent | 63c2d378c53ab7340466495b49451e68a7411c6c (diff) | |
download | thrift-b7c69711e70e1337d0587ac3b50b283ca860a19d.tar.gz |
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
Diffstat (limited to 'lib/rb/lib')
-rw-r--r-- | lib/rb/lib/thrift/server/nonblocking_server.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rb/lib/thrift/server/nonblocking_server.rb b/lib/rb/lib/thrift/server/nonblocking_server.rb index 911d6d53f..740f3417e 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 |