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

Method SetWriteDeadline

conn.go:787–790  ·  view source on GitHub ↗

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

(t time.Time)

Source from the content-addressed store, hash-verified

785// all future writes will return an error. A zero value for t means writes will
786// not time out.
787func (c *Conn) SetWriteDeadline(t time.Time) error {
788 c.writeDeadline = t
789 return nil
790}
791
792// Read methods
793

Callers 6

UpgradeMethod · 0.45
writeMethod · 0.45
WriteControlMethod · 0.45
pumpStdoutFunction · 0.45
writePumpMethod · 0.45
writerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected