Skip to content

Commit 10e95f1

Browse files
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 #178
1 parent 5801dc6 commit 10e95f1

File tree

3 files changed

+511
-87
lines changed

3 files changed

+511
-87
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.
1111
### Added
1212

1313
- Support queue 1.2.0 (#177)
14+
- ConnectionHandler interface for handling changes of connections in
15+
ConnectionPool (#178)
1416

1517
### Changed
1618

0 commit comments

Comments
 (0)