ws: add Connection backpressure channel instead of spawning tasks

Seems to fix memory leak issue
This commit is contained in:
Joakim Frostegård 2024-01-07 11:13:36 +01:00
parent 6e7d36cffc
commit 188da135ab
3 changed files with 86 additions and 77 deletions

View file

@ -173,8 +173,6 @@ pub async fn run_socket_worker(
config,
access_list,
in_message_senders,
tq_prioritized,
tq_regular,
connection_valid_until,
out_message_sender,
out_message_receiver,
@ -189,7 +187,7 @@ pub async fn run_socket_worker(
connection_handles.borrow_mut().remove(connection_id);
}),
tq_prioritized,
tq_regular,
)
.unwrap()
.detach();