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 <jldunn2...@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 >
-- http://mail.python.org/mailman/listinfo/python-list