conn: change TCPBufSize to 32K as the golang standard lib did

This commit is contained in:
nadoo committed 2020-10-21 20:00:43 +08:00
1 parent cd78995cd4
commit 904757052d
7 files changed
+31 -52

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ func (c *ClientConn) Handshake(host, path string) error {
_, code, _, ok := parseFirstLine(line)
if !ok || code != "101" {
return errors.New("[ws] error in ws handshake parseFirstLine")
return errors.New("[ws] error in ws handshake parseFirstLine: " + line)
}
respHeader, err := tpr.ReadMIMEHeader()