summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames E. Blair <jeblair@openstack.org>2014-03-13 07:58:17 -0700
committerJames E. Blair <jeblair@openstack.org>2014-03-13 08:04:30 -0700
commit37be1475b1300b67d83d87af412d9e7f11961dce (patch)
tree7e990a720a3d53d10bc6f119adcd34809a5afa71
parent6c48ca2c94b6e756b6afee592d9461af6d2d1db5 (diff)
downloadgear-37be1475b1300b67d83d87af412d9e7f11961dce.tar.gz
Close server connect pipes on cleanup
Not nearly as big of a problem as the base client/server pipes but still probably ought to be cleaned up Change-Id: Ie4dcf4c623fa5cd9aadae13b335fcdf44c6ecad6
-rw-r--r--gear/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gear/__init__.py b/gear/__init__.py
index 2ccd0c7..56e8812 100644
--- a/gear/__init__.py
+++ b/gear/__init__.py
@@ -2264,6 +2264,8 @@ class Server(BaseClientServer):
def _cleanup(self):
super(Server, self)._cleanup()
self.socket.close()
+ os.close(self.connect_wake_read)
+ os.close(self.connect_wake_write)
def _lostConnection(self, conn):
# Called as soon as a connection is detected as faulty.