Socket Help
Luca Fini
lfini at arcetri.astro.it
Tue Mar 30 09:40:36 EST 2004
Python 2.3 has support for timeout on sockets.
l.f.
On Mon, 29 Mar 2004, Lindstrom Greg - glinds wrote:
> 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.
--------------------------------------------------------------------------
-- ) Luca Fini Tel: +39 055 2752 307
___ |\ INAF - Oss. Astrofisico di Arcetri Fax: +39 055 2752 292
/ | | |-_ L.go E.Fermi, 5 +-----------------------------------------
(___|___//___) 50125 Firenze / WWW: http://www.arcetri.astro.it/~lfini
(_) (_) Italia / e-mail: lfini at arcetri.astro.it
-----------------------------+--------------------------------------------
More information about the Python-list
mailing list