Re: [cx-oracle-users] Time out parameter for connect?
Brought to you by:
atuining
From: Richard M. <ri...@we...> - 2005-10-25 15:39:59
|
Molina, Gerardo wrote: > What I was looking for was a timeout associated with an attempted > connect, not a timeout for after the connection is established. > Basically, I'm trying to reduce the the time spent waiting for a TCP > timeout if host is off the air. I was looking for something like the > timeout parameter in the pexpect module. You use an alarm call, possibly something like http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/307871 but I guess this might lead to a resource leak. Rich. -- Richard Moore, Principal Software Engineer, Westpoint Ltd, Albion Wharf, 19 Albion Street, Manchester, M1 5LN, England Tel: +44 161 237 1028 Fax: +44 161 237 1031 |