Re: [cx-oracle-users] cx_oracle does not close TCP/IP connections on close(); relies on Python garb
Brought to you by:
atuining
From: Anthony T. <ant...@gm...> - 2011-05-14 23:12:59
|
On Sat, May 14, 2011 at 10:46 AM, Amaury Forgeot d'Arc <ama...@gm...> wrote: > Hi, > > 2011/5/14 Michael Bayer <mi...@zz...>: >> I'm assuming this is intentional behavior, as illustrated by the script below. >> Wondering what the rationale is for delaying the close of a connection until the object is garbage collected > > It's true that the .close() method only calls OCISessionEnd(). > OCIServerDetach() is only called by the destructor. I have just checked in changes to do exactly this. It calls OCIServerDetach() on close. Let me know if this resolves the problem for you. Thanks. Anthony |