From: Kevin Clark Date: Wed, 18 Jun 2008 01:08:47 +0000 (+0000) Subject: Fix blanket exception rescue in ThreadPoolServer X-Git-Tag: 0.2.0~592 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=8206c1a3c5196c448d21e2fe6fc4429cff30f769;p=common%2Fthrift.git Fix blanket exception rescue in ThreadPoolServer git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668957 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/rb/lib/thrift/server.rb b/lib/rb/lib/thrift/server.rb index 206a6c69..d5ed9023 100644 --- a/lib/rb/lib/thrift/server.rb +++ b/lib/rb/lib/thrift/server.rb @@ -125,7 +125,7 @@ module Thrift trans.close end end - rescue Exception => e + rescue => e @exception_q.push(e) ensure @thread_q.pop # thread died!