Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
I experienced a situation where the connection pool could not open any more connections, and then I got a timeout exception. My server logs only displayed the exception message, so I only saw :
"Timeout waiting for connection".
Because there were also some slight network problems, I originally believed that the exception was caused by the "Connection timeout period" set on the http connection had passed, and that the server I tried to reach had not accepted the connection quickly enough.
But later on I figured out it was the connection pool.
So I suggest to change the exception message from :
"Timeout waiting for connection"
to
"Timeout waiting for connection from pool"
to make it clear that it is a pool timeout and not a network connect timeout.