Fixes #50
Problem was that InternalConnection wasn't marking itself as doomed if it failed to SendPackets.
This would have a flow-on effect when the connection is released back into the pool, the pool would not notice the need to drop the connection outright.
Fix is to detect SendPackets failing, mark the connection as doomed, and let the pool handle it as normal.
Fixes #50 Problem was that
InternalConnection
wasn't marking itself as doomed if it failed toSendPackets
. This would have a flow-on effect when the connection is released back into the pool, the pool would not notice the need to drop the connection outright.Fix is to detect
SendPackets
failing, mark the connection as doomed, and let the pool handle it as normal.