Diagnosing socket "Connection reset by peer"

Matt Jones matt.walker.jones at gmail.com
Wed May 22 07:46:22 EDT 2013


This typically indicates that the "peer" at the other end of the tcp
connection severed the session without the typical FIN packet.  If you're
treating the printer as a "blackbox" then there really isn't anything you
can do here except catch the exception and attempt to reconnect.

*Matt Jones*


On Wed, May 22, 2013 at 3:46 AM, loial <jldunn2000 at gmail.com> wrote:

> I have a sockets client that is connecting to a printer and occassionally
> getting the error "104 Connection reset by peer"
>
> I have not been able to diagnose what is causing this. Is there any
> additional traceing I can do(either within my python code or on the
> network) to establish what is causing this error?
>
> Currently I am simply trapping socket.erruor
>
> Python version is 2.6
>
>
>
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130522/b7cf558a/attachment.html>


More information about the Python-list mailing list