Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost.asio] error Software caused connection abort
From: imin imup (iminimup_at_[hidden])
Date: 2010-04-05 23:10:37


>
> > The way I use can be sketched by:
> > ============================
> > open a tcp socket
> > bind to a port
> > asynchronously connect to a remote host
> > in callback if it fails (may get expected errors), asynchronously
> reconnect
> > to remote host, up to specified times
> > In callback I get "abort" error after every reconnect
> >
> > Any further help to debug this is appreciated.
>
> I guess the server (host) closes the connection for some reason, so
> you have to debug your server and see what happens there after an
> incoming connection is accepted.
>
> BTW, there's a dedicated asio mailing list:
> http://news.gmane.org/group/gmane.comp.lib.boost.asio.user
>

Thanks. This is very helpful information.
I found the direct reason. After a failed connect, the socket has been
somehow closed. So reconnect cannot be carried out.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net