how best to handle httplib timeouts ?
rich at mchsi.com
Wed Jul 30 05:58:10 CEST 2003
I'm trying to write an app to monitor an IIS server, by connecting and
getting a page via httplib. the problem seems to be when IIS (or ASP) dies
httplib does not always return and sometimes I'm left with an app that
hangs. what is the best way to handle this ?
the code looks like this:
res = h.getresponse()
dat = res.read()
sFlag = sFlag + 1
if debug > 0:
WriteLog(' Error receiving a response from 2nd mailbox page
More information about the Python-list