NetrexMC / RakNet

RakNet implementation in Rust
Apache License 2.0
44 stars 12 forks source link

bug: Client does NOT close properly (neither do server connections) #44

Closed john-bv closed 1 year ago

john-bv commented 1 year ago

Describe the bug The Client and Connection structs both have an issue when communicating with eachother, that being, when the tasks are paused, there is no way to "wake them up" currently, meaning if a disconnect signal is received by the server, the other tasks will have no way of knowing that this signal was received causing a weird case where the connection freezes and has to wait for the connection timeout.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior These structs should dispatch signals properly to all tasks without any need for locking.

Screenshots If applicable, add screenshots to help explain your problem.

Server versions (please complete the following information):

john-bv commented 1 year ago

This issue was completed with: d7c856aa5984c1de5183bca262f8acbc4dea1a14