Skip to content

Commit

Permalink
refactor(iroh-net): Don't send pings over the actor channel (#1678)
Browse files Browse the repository at this point in the history
## Description

Small refactor in iroh-net: Do not send disco messages (pings and pongs)
over the main actor channel. Instead, either send them right away if the
request comes from a poll function, or use a new, small, dedicated task
that just sends out the disco messages over UDP. For Derp we drop
messages anyway if the channel is full, so no need to pass over the main
actor.


## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [x] Self-review.
- [x] Documentation updates if relevant.
- [ ] Tests if relevant.

---------

Co-authored-by: Friedel Ziegelmayer <[email protected]>
  • Loading branch information
Frando and dignifiedquire authored Oct 20, 2023
1 parent f8f08a0 commit 0cbab51
Show file tree
Hide file tree
Showing 2 changed files with 146 additions and 174 deletions.
Loading

0 comments on commit 0cbab51

Please sign in to comment.