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