Hi Mark,

I'm using TFramedTransport at client side.
I also received the error like below for many times after the server was
rebooted.

Thrift: Fri Apr 20 15:43:43 2012 TSocket::write_partial() send() <Host:
127.0.0.1 Port: 11120>Broken pipe

And I'm using Thrift 0.7.0. Could you give me any clues or hints?
Many thanks.

---------
Tiger Y


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

Reply via email to