MCPcopy Create free account
hub / github.com/XTLS/Go / SetWriteDeadline

Method SetWriteDeadline

conn.go:176–178  ·  view source on GitHub ↗

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

(t time.Time)

Source from the content-addressed store, hash-verified

174// A zero value for t means Write will not time out.
175// After a Write has timed out, the TLS state is corrupt and all future writes will return the same error.
176func (c *Conn) SetWriteDeadline(t time.Time) error {
177 return c.conn.SetWriteDeadline(t)
178}
179
180// NetConn returns the underlying connection that is wrapped by c.
181// Note that writing to or reading from this connection directly will corrupt the

Callers 1

closeNotifyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected