From 4f646ed65a9bb07c3774bc31fbda26a7c25770ad Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Thu, 9 Jun 2011 12:04:21 -0700 Subject: bug 5146 - Python deadlock in Connection::close --- py/modules/IcePy/Connection.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'py/modules/IcePy/Connection.cpp') diff --git a/py/modules/IcePy/Connection.cpp b/py/modules/IcePy/Connection.cpp index 46dd3134c93..8b13060bdac 100644 --- a/py/modules/IcePy/Connection.cpp +++ b/py/modules/IcePy/Connection.cpp @@ -98,6 +98,7 @@ connectionClose(ConnectionObject* self, PyObject* args) assert(self->connection); try { + AllowThreads allowThreads; // Release Python's global interpreter lock during blocking invocations. (*self->connection)->close(force > 0); } catch(const Ice::Exception& ex) @@ -209,6 +210,7 @@ connectionFlushBatchRequests(ConnectionObject* self) assert(self->connection); try { + AllowThreads allowThreads; // Release Python's global interpreter lock during remote invocations. (*self->connection)->flushBatchRequests(); } catch(const Ice::Exception& ex) -- cgit v1.2.3