You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by br...@apache.org on 2011/06/09 00:53:12 UTC
svn commit: r1133593 -
/thrift/trunk/lib/rb/lib/thrift/server/nonblocking_server.rb
Author: bryanduxbury
Date: Wed Jun 8 22:53:11 2011
New Revision: 1133593
URL: http://svn.apache.org/viewvc?rev=1133593&view=rev
Log:
THRIFT-1193. rb: Potential infinite loop in nonblocking_server
Patch: Ilya Maykov
Modified:
thrift/trunk/lib/rb/lib/thrift/server/nonblocking_server.rb
Modified: thrift/trunk/lib/rb/lib/thrift/server/nonblocking_server.rb
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/rb/lib/thrift/server/nonblocking_server.rb?rev=1133593&r1=1133592&r2=1133593&view=diff
==============================================================================
--- thrift/trunk/lib/rb/lib/thrift/server/nonblocking_server.rb (original)
+++ thrift/trunk/lib/rb/lib/thrift/server/nonblocking_server.rb Wed Jun 8 22:53:11 2011
@@ -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