-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
I have the feeling there is a session leak in the server code in case the server gets "too many" messages.
This is the scenario:
-
Use the
subs.rs
example -
Instead of returning
Ok()
in the publish method, use:tokio::time::sleep(Duration::from_secs(1)).await; Err(MyServerError)
-
Implement
Drop
forMySession
, print out something
Now when you send one message, it processes it, fails, closes the connection and prints out the message from drop
.
If you send e.g. 20 messages at once, it processes all of the, closes the connection, but doesn't print out the message. This is pretty reproducible.
My assumption is, the session is still lingering somewhere.
Metadata
Metadata
Assignees
Labels
No labels