Hi Mark, The server should be up because I saw the prompt like below, Thrift: Fri Apr 20 11:47:04 2012 libevent 1.4.14b-stable method epoll
Thanks for your suggestions, I'll try them. There might be some potential stability issue within my server. Thanks! On Fri, Apr 20, 2012 at 1:34 AM, Mark Slee <[email protected]> wrote: > Are you 100% sure that your server is up? Connection refused would imply > that the server isn't listening for new connections on the port you're > trying to connect to... > > What type of transport are you using? Could also try invoking ->close() > before open(), or creating a new transport - though it *should* work as > written here. > > On 4/19/12 9:45 AM, "Tiger Y" <[email protected]> wrote: > > >Hello, > > > >I tried to execute the code below before each RPC call at client side, > > > >.... > >if ( !some_transport->isOpen() ) > >{ > > some_transport->open(); > >} > >some_client->ping(); > >... > > > >but some_transport->open() failed sometimes and got message like > >"connection refused by blablabla ..." > > > >So how to reconnect server rightly? > > > > > >Thanks. > > > >
