Commit 2c17e90a authored by Aurel's avatar Aurel

reset write/read buffer when closing the connection


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@565 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 46347845
......@@ -178,6 +178,8 @@ class Connection(BaseConnection):
for event in self.event_dict.itervalues():
em.removeIdleEvent(event)
self.event_dict.clear()
self.write_buf = ""
self.read_buf = ""
def __del__(self):
self.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment