This patch allows the process to exit cleanly. Yay!
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@762840
13f79535-47bb-0310-9956-
ffa450edef68
client = setup_client
client.greeting(true).should == Hello.new
client.greeting(false).should == Hello.new(:greeting => 'Aloha!')
+ @server.shutdown
end
it "should handle concurrent clients" do
4.times { trans_queue.pop }
setup_client.unblock(4)
4.times { queue.pop.should be_true }
+ @server.shutdown
end
it "should handle messages from more than 5 long-lived connections" do
client.greeting(false).should == Hello.new(:greeting => 'Aloha!')
7.times { queues.shift << :exit }
client.greeting(true).should == Hello.new
+ @server.shutdown
end
it "should shut down when asked" do