mirror of
https://github.com/soheilhy/cmux.git
synced 2026-08-04 09:11:50 +08:00
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.
3.0 KiB
3.0 KiB