You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The logic of handshake_tx is copied from Pion::dtls. However, tokio:: mpsc::channel with size 1 is used here, and it behaves differently from the golang::channel. The golang channel is actually a rendezvous channel (size=0 channel). It means that the sender blocks until the receiver receives, then both of them can proceed. However, the tokio::mpsc::sender can proceed as long as there is capacity in the channel. Channel with size=1 is not a rendezvous channel and tokio::mpsc::channel doesn't support size=0. therefore, I added an async block where oneshot channel is integrated in order to mimic the rendezvous channel behavior.
0 commit comments