From: Геннадий З. <zab...@gm...> - 2015-10-06 13:46:31
|
I have a question about method implementation. CleanConnectionsImpl It cleans connections in pool. But why _busy dictionary connections are disposed as well? Isn't it a trouble maker for inappropriate ClearPools method users? We had run in a problem where currently running queries were failing because another thread wrongly cleared all pools. It was quite unexpected. We fixed the issue in our code with the thread, but I think it should throw InvalidOperationException if _busy dictionary is not empty, because it means that there may be currently running queries. |