Toemsel / Network

C# Network Library
https://push-force.dev
GNU Lesser General Public License v3.0
355 stars 65 forks source link

ServerContainer Connection Count not decreasing #53

Closed Toemsel closed 4 years ago

Toemsel commented 4 years ago

Close a TCP connection within a packetReceived on the server side. The connection count doesn't decrease. Bug not confirmed, requires evaluation.

Toemsel commented 4 years ago

If the server closes the connection with .Close(...) without calling the delegate, the ServerConnectionContainer wont receive any event.

Solution:

Implement an internal event listener to ensure a proper cleanup

Toemsel commented 4 years ago

Fixed https://github.com/Toemsel/Network/pull/57