RelativityMC / raknetify

A Fabric mod / Velocity plugin / BungeeCord plugin that uses RakNet to improve multiplayer experience significantly under unreliable and rate-limited connections.
MIT License
148 stars 2 forks source link

Server blocks all udp connections if someone disconnects unexpectedly #27

Closed ghost closed 1 year ago

ghost commented 1 year ago

Describe the bug Server blocks all udp connections and would never allow anyone to connect via raknet if someone disconnects unexpectedly (timeout or change of address ex. ipv6 mobility)

To Reproduce Steps to reproduce the behavior:

  1. start a server
  2. connect and then change ip address (for example to make the player disconnect unexpectedly)
  3. client gets disconnected due to connection loss
  4. server still maintains the connection
  5. server get connection timeout
  6. server now refuses anyone to connect

Expected behavior

server should terminate the connection normally and allow normal operation rather than block all the connection through raknet.

Runtime info (please complete the following information):

Checklist

ghost commented 1 year ago

whats more, when this issue happens, server would never shutdown if a stop command is entered. server would always suck at Stopping Server, and nerver gets shutdowned.

ishland commented 1 year ago

Try reproduce with latest devbuild first.

ghost commented 1 year ago

tested on latest version issue remains

ishland commented 1 year ago

Try getting a jstack -l <pid> output when the issue occurs.

ghost commented 1 year ago

Seems the latest version is ok now, i don't know why it's not working the first time.