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)
| 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. |
| 176 | func (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 |