Commit 3d3ec70
committed
api: add ConnectionHandler to the connection_pool
ConnectionHandler provides callbacks for components interested in handling changes of connections in a ConnectionPool. We have to take into account that user callbacks can take an indefinite amount of time. The simplest solution is to process each connection in a separate goroutine. This should not affect to performance because most of the time these goroutines are blocked. Closes #1781 parent 5801dc6 commit 3d3ec70
File tree
3 files changed
+507
-87
lines changed- connection_pool
3 files changed
+507
-87
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
0 commit comments