mirror of https://github.com/golang/go.git
Deadlock in test if a TLS error occurs
A Go routine was, on an error, returning without sending a message on its signaling channel, so the main program was blocking forever waiting for a message that was never sent. Found while breaking crypto/tls.
This commit is contained in:
parent
7846e25418
commit
4d84fb8b55
|
|
@ -200,7 +200,6 @@ func TestRenegotiationExtension(t *testing.T) {
|
||||||
n, err := c.Read(buf)
|
n, err := c.Read(buf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("Server read returned error: %s", err)
|
t.Errorf("Server read returned error: %s", err)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
c.Close()
|
c.Close()
|
||||||
bufChan <- buf[:n]
|
bufChan <- buf[:n]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue