Commit 6b38043b authored by Grégory Wisniewski's avatar Grégory Wisniewski

As client nodes don't keep their UUID between two connections, drop node from...

As client nodes don't keep their UUID between two connections, drop node from memory at disconnection to avoid memory leak.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1425 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 7e30718b
...@@ -72,6 +72,7 @@ class ClientServiceHandler(BaseServiceHandler): ...@@ -72,6 +72,7 @@ class ClientServiceHandler(BaseServiceHandler):
for tid, t in app.finishing_transaction_dict.items(): for tid, t in app.finishing_transaction_dict.items():
if t.getConnection() is conn: if t.getConnection() is conn:
del app.finishing_transaction_dict[tid] del app.finishing_transaction_dict[tid]
app.nm.remove(node)
def abortTransaction(self, conn, packet, tid): def abortTransaction(self, conn, packet, tid):
try: try:
......
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