Skip to content

Commit fd0a474

Browse files
committed
Fix memory leak in websocket handler
1 parent 4398d3b commit fd0a474

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ads/aqua/extension/ui_websocket_handler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def on_message_processed(self, future: concurrent.futures.Future):
112112
)
113113
raise e
114114
finally:
115+
self.future_message_map.pop(future)
115116
# Send the response back to the client on the event thread
116117
IOLoop.current().run_sync(lambda: self.write_message(response.to_json()))
117118

0 commit comments

Comments
 (0)