johanhelsing / matchbox

Painless peer-to-peer WebRTC networking for rust wasm (and native!)
Apache License 2.0
869 stars 72 forks source link

bevy_matchbox freezes infinitely if you use `MultipleChannels` plurality #328

Closed simbleau closed 12 months ago

simbleau commented 12 months ago

Hard to make a reproducible example, but I am working on it.

Here's what I've done:

And finally, the part that will hang the program indefinitely:

If it uses a single channel it will work as intended.

simbleau commented 12 months ago

The PR above updates the bevy-ggrs example to use bevy_matchbox.

It is blocked on #283 unfortunately.

simbleau commented 12 months ago

I isolated the issue and found out the issue.

socket.channel(RELIABLE_CHANNEL_INDEX).receive() can hang infinitely.

This is talked about and fixed in #329