File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ type Dialer struct {
70
70
// HandshakeTimeout specifies the duration for the handshake to complete.
71
71
HandshakeTimeout time.Duration
72
72
73
- // ReadBufferSize and WriteBufferSize specify I/O buffer sizes. If a buffer
73
+ // ReadBufferSize and WriteBufferSize specify I/O buffer sizes in bytes . If a buffer
74
74
// size is zero, then a useful default size is used. The I/O buffer sizes
75
75
// do not limit the size of the messages that can be sent or received.
76
76
ReadBufferSize , WriteBufferSize int
Original file line number Diff line number Diff line change @@ -1042,7 +1042,7 @@ func (c *Conn) SetReadDeadline(t time.Time) error {
1042
1042
return c .conn .SetReadDeadline (t )
1043
1043
}
1044
1044
1045
- // SetReadLimit sets the maximum size for a message read from the peer. If a
1045
+ // SetReadLimit sets the maximum size in bytes for a message read from the peer. If a
1046
1046
// message exceeds the limit, the connection sends a close message to the peer
1047
1047
// and returns ErrReadLimit to the application.
1048
1048
func (c * Conn ) SetReadLimit (limit int64 ) {
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ type Upgrader struct {
27
27
// HandshakeTimeout specifies the duration for the handshake to complete.
28
28
HandshakeTimeout time.Duration
29
29
30
- // ReadBufferSize and WriteBufferSize specify I/O buffer sizes. If a buffer
30
+ // ReadBufferSize and WriteBufferSize specify I/O buffer sizes in bytes . If a buffer
31
31
// size is zero, then buffers allocated by the HTTP server are used. The
32
32
// I/O buffer sizes do not limit the size of the messages that can be sent
33
33
// or received.
You can’t perform that action at this time.
0 commit comments