You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add signaling support for connection pool waiting (globalsign#115)
* Add signaling support for connection pool waiting
The current behaviour when the poolLimit is reached and a new connection
is required is to poll every 100ms to see if there is now headroom to
make a new connection. This adds tremendous latency to the
limit-hit-path.
This commit changes the checkout behaviour to watch on a condition
variable for connections to become available, and the checkin behaviour
to signal this variable. This should allow waiters to use connections
immediately after they become available.
A new parameter is also added to DialInfo, PoolTimeout, which is the
maximum time that clients will wait for connection headroom to become
available. By default this is unlimited.
* Add stats for connection pool timings
This exposes four new counters
* The number of times a socket was successfully obtained from the
connection pool
* The number of times the connection pool needed to be waited on
* The total time that has been spent waiting for a conneciton to become
available
* The number of times socket acquisition failed due to a pool timeout
* Gitignore .vscode directory
I'm using vscode and accidently committed the .vscode directroy;
.gitignore this footgun.
0 commit comments