lucaspoffo / renet

Server/Client network library for multiplayer games with authentication and connection management made with Rust
Apache License 2.0
622 stars 66 forks source link

`ConnectionReset` breaks `RenetServer::update()` #76

Closed gerdoe-jr closed 1 year ago

gerdoe-jr commented 1 year ago

On Windows, update() will throw Os { code: 10054, kind: ConnectionReset, message: "An existing connection was forcibly closed by the remote host." } if client forced connection closing (e.g, client crashed without sending disconnect packet).

arseeeeN commented 1 year ago

I have the same issue on my machine (Windows). Renet doesn't seem to recognize clients that disconnect this way and will send error events every frame in bevy.

lucaspoffo commented 1 year ago

Fixed by bf49592f221eee7853abd22314a33ee3d1f81690 The server now handles this error.