2
0
mirror of https://github.com/soheilhy/cmux.git synced 2026-08-09 05:58:56 +08:00
Files
cmux/cmux_test.go
Soheil Hassas Yeganeh 6f986603b0 Close the connections buffered for the listeners
This commit closes the connections that has been buffered
on the connection channel of the cmux listeners, when the
root listener is closed. With this change it is guaranteed
that the connections are either closed or handed of to the
child listeners (returned via Accept()).

There are a couple of changes to the tests to cover corner
cases and the new behavior.
2016-02-23 23:01:35 -05:00

8.8 KiB