If any of the operations throws an exception before the call to _delegate.closeConnection(timeout); then we will leak socket connections.
I already see this happening when running performance tests, where session/connection close operations are timing out. The number of connections keeps growing.
|Field||Original Value||New Value|
|Summary||AMQConnection close is leaking socket connections||AMQConnection close can leak socket connections if exceptions occur earlier in the process|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Fix Version/s||0.22 [ 12324272 ]|
|Fix Version/s||Future [ 12315490 ]|
|Resolution||Fixed [ 1 ]|