Skip to content

Commit

Permalink
Implement cancellation on disconnect. (#3131)
Browse files Browse the repository at this point in the history
This will be very helpful when we have requests which timeout, which is
presented to Janus as a client disconnect. Otherwise, we would continue
processing the request until it is complete.

Update Helper aggregation methods, which use rayon to parallelize
processing, to respect cancellation. Specifically, the `receiver` will
be dropped, causing the producer's `sender` to return a SendError, which
will cause `try_for_each_with` to stop processing.
  • Loading branch information
branlwyd committed May 13, 2024
1 parent 8dd0a68 commit 79ec08b
Show file tree
Hide file tree
Showing 4 changed files with 513 additions and 409 deletions.
Loading

0 comments on commit 79ec08b

Please sign in to comment.