socket error 54?

Alex Tweedly alex at tweedly.net
Tue Feb 16 17:28:28 EST 2010


Richard Gaskin wrote:
> I have a weird connection which drops my socket about 25MBs into a 
> 34MB upload using libURL.
>
> The session transcript ends with:
> socket error <ip>|6927
> Error 54 reading socket
>
> What is error 54?
Error 54, sometimes known as 10054 or sometimes as 20054 is a hard one 
to deal with. It means: Connection reset. (i.e. by the other guy) - i.e. 
you receiveed a reset (RST) packet. 

> Connection reset by peer.
>
>     An existing connection was forcibly closed by the remote host.
>     This normally results if the peer application on the remote host
>     is suddenly stopped, the host is rebooted, the host or remote
>     network interface is disabled, or the remote host uses a hard
>     close (see *setsockopt*
>     <http://msdn.microsoft.com/en-us/library/ms740476%28VS.85%29.aspx>
>     for more information on the SO_LINGER option on the remote
>     socket). This error may also result if a connection was broken due
>     to keep-alive activity detecting a failure while one or more
>     operations are in progress. Operations that were in progress fail
>     with WSAENETRESET. Subsequent operations fail with WSAECONNRESET.
>

Can also happen if you go over a policy limit on uploads, or similar.

-- Alex.



More information about the use-livecode mailing list