DataAction / AdoNetCore.AseClient

AdoNetCore.AseClient - a .NET Core DB Provider for SAP ASE
Apache License 2.0
108 stars 45 forks source link

Improve broken connection state handling #54

Closed senseibaka closed 6 years ago

senseibaka commented 6 years ago

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.