[cx-oracle-users] Re: Connection timeout
Brought to you by:
atuining
From: Paul M. <pf_...@ya...> - 2004-03-17 21:11:05
|
Anthony Tuininga <an...@co...> writes: > There is no way in the OCI that I am aware of for dealing with timeouts. [...] > The only other option (that I can think of) is to use threads or > processes and a timer to implement your own timeout of some sort -- > not a very palatable option, though. :-) Thanks for the information. I was afraid that was the case. Threads is a possibility (I'm running 50 or more connect attempts in separate threads, so adding a control thread isn't much of a problem). But that still leaves the question - if thread A is sitting in a connect() call, can I, from thread B, make it stop? (Given that Python offers no way to kill a thread from "outside"). Thanks, Paul. -- This signature intentionally left blank |