Re: [cx-oracle-users] cx_oracle does not close TCP/IP connections on close(); relies on Python garb
Brought to you by:
atuining
From: Michael B. <mi...@zz...> - 2011-05-17 15:17:57
|
On May 14, 2011, at 7:12 PM, Anthony Tuininga wrote: > 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. I had already worked around the issue on our end, but the new changes work great, thanks ! |