Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pool: Prevent potential read goroutine leak.
This ensures the send to the read channel for a client respects the context since it could otherwise end up hanging forever when sending to the channel that no longer has a goroutine reading from it thereby leaking the goroutine. It also includes the read goroutine in the overall waitgroup for the client to help ensure it shuts down as intended.
- Loading branch information