Bryan: Thanks for the tips/suggestion.
I will definitely look into that. (It will be my first foray into
coding with threads...I do appreciate that you've laid a great deal of
it out. I will certainly refer to my references and do substantial
testing on this...)
Thanks!
--
Sheila King
On 08/12/2005 22:37:22 Bryan Olson <[EMAIL PROTECTED]> wrote:
> Sheila King wrote:
>> I'm doing DNS lookups [...] it is important to make sure that the socket
>> doesn't just hang there waiting for a response.
>> After a recent system upgrade to Python 2.
I do note that the setdefaulttimeout is accomplishing something in my
full program.
I am testing some error handling in the code at the moment, and am
raising an exception to make the code go into the "except" blocks...
The part that sends an error email notice bombed due to socket timeout.
(well
ossible?
Thanks for any tips. Example code follows signature...
--
Sheila King
http://www.thinkspot.net/sheila/
#!/usr/local/bin/python2.4
import socket
import sys
from time import time, asctime, localtime
socket.setdefaulttimeout(.1)
debugfile = "socketdebug.txt"
def debug(data
Also, the phrasing of the error message is a bit odd?
"day of year out of range"
I'm not sure what the
day of a year
would be???
Sheila King
http://www.thinkspot.net/sheila/
--
http://mail.python.org/mailman/listinfo/python-list