2
0
mirror of https://github.com/soheilhy/cmux.git synced 2026-08-04 09:11:50 +08:00
Files
cmux/cmux_test.go
Soheil Hassas Yeganeh b90740dfa9 Fix send on closed channel
If a matcher go-routine mateches a connection after the root
listener was closed, cmux will panic since all connection channels
will be closed. This commit avoids closing connection channels but
signals the matcher go-routines that the listener is closed via
a done channel.

Tested: Added a test case for this issue.
2015-08-30 21:10:18 -04:00

3.0 KiB