MCPcopy
hub / github.com/gorilla/websocket / SetReadDeadline

Method SetReadDeadline

conn.go:1105–1107  ·  view source on GitHub ↗

SetReadDeadline sets the read deadline on the underlying network connection. After a read has timed out, the websocket connection state is corrupt and all future reads will return an error. A zero value for t means reads will not time out.

(t time.Time)

Source from the content-addressed store, hash-verified

1103// all future reads will return an error. A zero value for t means reads will
1104// not time out.
1105func (c *Conn) SetReadDeadline(t time.Time) error {
1106 return c.conn.SetReadDeadline(t)
1107}
1108
1109// SetReadLimit sets the maximum size in bytes for a message read from the peer. If a
1110// message exceeds the limit, the connection sends a close message to the peer

Callers 3

pumpStdinFunction · 0.45
readPumpMethod · 0.45
readerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected