thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Duxbury <>
Subject Re: how to know the transport is invalid
Date Fri, 26 Jun 2009 15:35:11 GMT
Try the isOpen method. It's possible that will return true even if  
the other end is gone away, and if that's the case, then you pretty  
much just have to catch the subsequent exception and retry the  
connection. It might be kind of nice to have this sort of  
functionality in Thrift itself...


On Jun 26, 2009, at 8:07 AM, Oscar wrote:

> Hi all,
> For the performance issue, I maintained a RPC connection pool.
> Before calling a RPC, client borrowed one connection from the pool and
> returned the connection after  calling the RPC.
> Now i have a problem, I don't know the connection is closed after
> server-side restarts.
> Any suggestions?
> thank you very much,
> -Oscar

View raw message