Re: How to clean up socket connection to printer

2013-07-15 Thread loial
Well, I certainly suspect the customers network connection to the printer which is over a WAN across half of Europe, but proving that is the problem is another matter. I can replicate a "Connection reset by peer" error on own printer by pulling the network cable out of the printer. And again I

Re: How to clean up socket connection to printer

2013-07-11 Thread Chris Angelico
On Thu, Jul 11, 2013 at 7:28 PM, loial wrote: > Replies to questions : > > 1. Does the printer accept connections again after some time? > > Yes, bit seems to vary how long that takes > > 2. Does the printer accept connections if you close and re-open the > Python interpreter? > > Not after a Conn

Re: How to clean up socket connection to printer

2013-07-11 Thread loial
Replies to questions : 1. Does the printer accept connections again after some time? Yes, bit seems to vary how long that takes 2. Does the printer accept connections if you close and re-open the Python interpreter? Not after a Connection reset error. The script exits after trapping the "Con

Re: How to clean up socket connection to printer

2013-07-09 Thread Ulrich Eckhardt
Am 09.07.2013 11:39, schrieb loial: I have a socket application that is connecting to a HP printer via port 9100. Occassionally I get a "Connection reset by peer" error which I am trapping and exiting the script with an error message. Strange. Why does the remote terminate the connection? T