Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use a buffered channel in the acceptQueue (#53)
There's a race condition here. A user might call Next to obtain the next stream, and get a nil result. He then calls Chan get notified about new incoming streams. If a new stream is accepted between the call to Next and the call to Chan, he won't be notified about that stream, unless the channel is buffered.
- Loading branch information