mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 02:05:30 +00:00
ws: add Connection backpressure channel instead of spawning tasks
Seems to fix memory leak issue
This commit is contained in:
parent
6e7d36cffc
commit
188da135ab
3 changed files with 86 additions and 77 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue