Socket Help

Lindstrom Greg - glinds Greg.Lindstrom at acxiom.com
Mon Mar 29 10:20:10 EST 2004


Hello-

I have a python routine (Python 2.2.3 on Windows 2000 "Professional") using
a socket connection.  Problem is, the backend service I'm connecting to will
hang every so often and the socket will simply wait for a response which
will never come.  I'm thinking of putting in a routine to check the socket's
status, which now brings in threading.  Before I go to the trouble I thought
I'd ask if there is a simple way to verify my socket is still communicating.
It's running about 200 transactions per second...if I put in the threaded
timer I'd have it take a look every few seconds to see if the
"TotalRecordsProcessed" counter has been incremented.

 

Your constructive thoughts are requested.

 

Thanks!

--greg



**********************************************************************
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20040329/210d60f6/attachment.html>


More information about the Python-list mailing list