Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #50434
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-07-11 02:28 -0700 |
| References | <c124b305-e2de-4355-bd20-15d0f9a40b65@googlegroups.com> |
| Message-ID | <f74f0fb1-c2d8-4640-ad03-89f81c55f23f@googlegroups.com> (permalink) |
| Subject | Re: How to clean up socket connection to printer |
| From | loial <jldunn2000@gmail.com> |
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 "Connection reset by peer" error and it is only when a new instance of the script is kicked off that the "Connection refused" issue is encountered. 3. Is there actually a limit to the number of concurrent connections? In other words, what happens when you try to create a second connection without closing the first? I get the Connction refused error in that scenerio too, but as my script exits after detecting the "Connection reset by peer error" there is only ever one instance of my script running(and therefore one attempt to connect) at a time, Which is why I am wondering whether the connection is closed properly by my code when the script exits afer the "Connection reset by peer" error. Or is it the printer not cleaning up the connection.?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to clean up socket connection to printer loial <jldunn2000@gmail.com> - 2013-07-09 02:39 -0700
Re: How to clean up socket connection to printer Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2013-07-09 16:05 +0200
Re: How to clean up socket connection to printer loial <jldunn2000@gmail.com> - 2013-07-11 02:28 -0700
Re: How to clean up socket connection to printer Chris Angelico <rosuav@gmail.com> - 2013-07-11 20:13 +1000
Re: How to clean up socket connection to printer loial <jldunn2000@gmail.com> - 2013-07-15 04:22 -0700
csiph-web