Rewrite connection muxer peek process to avoid server blocking by silent clients (#3187)

This commit is contained in:
Anis Elleuch
2016-11-06 20:41:01 +01:00
committed by Harshavardhana
parent 754c0770d6
commit 5ff30777e1
2 changed files with 47 additions and 25 deletions

View File

@@ -59,11 +59,8 @@ func runTest(t *testing.T) {
if err != nil {
t.Fatal(err)
}
ln = &ListenerMux{
Listener: ln,
config: &tls.Config{},
cond: sync.NewCond(&sync.Mutex{}),
}
ln = newListenerMux(ln, &tls.Config{})
addr := ln.Addr().String()
waitForListener := make(chan error)