crypto/tls (part 6/5)
Results of running gofmt again. R=rsc CC=go-dev http://go/go-review/1022006
This commit is contained in:
parent
9c63ad9791
commit
b501f32b50
@ -22,8 +22,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type cipherSuite struct {
|
type cipherSuite struct {
|
||||||
id uint16; // The number of this suite on the wire.
|
id uint16; // The number of this suite on the wire.
|
||||||
hashLength, cipherKeyLength int;
|
hashLength, cipherKeyLength int;
|
||||||
// TODO(agl): need a method to create the cipher and hash interfaces.
|
// TODO(agl): need a method to create the cipher and hash interfaces.
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -226,7 +226,10 @@ func (h *serverHandshake) error(e alertType) {
|
|||||||
// to tell it about the error.
|
// to tell it about the error.
|
||||||
h.controlChan <- ConnectionState{false, "", e};
|
h.controlChan <- ConnectionState{false, "", e};
|
||||||
close(h.controlChan);
|
close(h.controlChan);
|
||||||
go func() { for _ = range h.msgChan {} }();
|
go func() {
|
||||||
|
for _ = range h.msgChan {
|
||||||
|
}
|
||||||
|
}();
|
||||||
h.writeChan <- alert{alertLevelError, e};
|
h.writeChan <- alert{alertLevelError, e};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,10 @@ func (p *recordProcessor) loop(appDataChan chan<- []byte, requestChan <-chan int
|
|||||||
|
|
||||||
p.wakeWaiters();
|
p.wakeWaiters();
|
||||||
go drainRequestChannel(p.requestChan, p.connState);
|
go drainRequestChannel(p.requestChan, p.connState);
|
||||||
go func() { for _ = range controlChan {} }();
|
go func() {
|
||||||
|
for _ = range controlChan {
|
||||||
|
}
|
||||||
|
}();
|
||||||
|
|
||||||
close(handshakeChan);
|
close(handshakeChan);
|
||||||
if len(p.appData) > 0 {
|
if len(p.appData) > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user