rb: NonblockingServer: Use a select() loop in the acceptor thread
authorKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:20:22 +0000 (01:20 +0000)
committerKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:20:22 +0000 (01:20 +0000)
commitf8ecb02ef4fae39f6f837508f75038afd4f69aa9
tree3e70704b443583ee1f223cf77df45c77bedb1864
parent77b39b3fd818d18c8b8d8623f8a2448ca2e5ce13
rb: NonblockingServer: Use a select() loop in the acceptor thread

Using a select() loop with a timeout allows the acceptor thread to be shut down
cleanly under JRuby.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669042 13f79535-47bb-0310-9956-ffa450edef68
lib/rb/lib/thrift/server/nonblockingserver.rb
lib/rb/lib/thrift/transport.rb
lib/rb/lib/thrift/transport/socket.rb
lib/rb/lib/thrift/transport/unixsocket.rb
lib/rb/spec/socket_spec.rb
lib/rb/spec/unixsocket_spec.rb