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. >
