Diagnosing socket Connection reset by peer

2013-05-22 Thread loial
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

Re: Diagnosing socket Connection reset by peer

2013-05-22 Thread Matt Jones
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

Re: Diagnosing socket Connection reset by peer

2013-05-22 Thread Dave Angel
On 05/22/2013 04:46 AM, loial wrote: SNIP Is there any additional traceing I can do(either within my python code or on the network) to establish what is causing this error? Try using Wireshark. It can do a remarkable job of filtering, capturing, and analyzing packets. It can

Re: Diagnosing socket Connection reset by peer

2013-05-22 Thread Jorgen Grahn
On Wed, 2013-05-22, Dave Angel wrote: On 05/22/2013 04:46 AM, loial wrote: SNIP Is there any additional traceing I can do(either within my python code or on the network) to establish what is causing this error? Try using Wireshark. It can do a remarkable job of filtering,

Re: Diagnosing socket Connection reset by peer

2013-05-22 Thread Jorgen Grahn
On Wed, 2013-05-22, Matt Jones wrote: 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

Re: Diagnosing socket Connection reset by peer

2013-05-22 Thread Grant Edwards
On 2013-05-22, Jorgen Grahn grahn+n...@snipabacken.se wrote: On Wed, 2013-05-22, Dave Angel wrote: On 05/22/2013 04:46 AM, loial wrote: SNIP Is there any additional traceing I can do(either within my python code or on the network) to establish what is causing this error? Try using