]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: use io.ReadFull in conn_test.go
authorJoe Tsai <joetsai@digital-static.net>
Fri, 24 Feb 2017 01:41:31 +0000 (17:41 -0800)
committerJoe Tsai <thebrokentoaster@gmail.com>
Fri, 24 Feb 2017 02:36:10 +0000 (02:36 +0000)
commitea5529de155cfd3f2c31698344b1ca001e0f8819
treeac74e93640ba6e8fad7e920f43f6fb71571b5e16
parentabdb2c35b6a0684b3eabe9892ff9e3518d2f4e78
crypto/tls: use io.ReadFull in conn_test.go

An io.Reader does not guarantee that it will read in the entire buffer.
To ensure that property, io.ReadFull should be used instead.

Change-Id: I0b863135ab9abc40e813f9dac07bfb2a76199950
Reviewed-on: https://go-review.googlesource.com/37403
Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/crypto/tls/conn_test.go