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

Method SetWriteDeadline

client_server_test.go:350–353  ·  view source on GitHub ↗
(t time.Time)

Source from the content-addressed store, hash-verified

348}
349
350func (c *requireDeadlineNetConn) SetWriteDeadline(t time.Time) error {
351 c.writeDeadlineIsSet = !t.Equal(time.Time{})
352 return c.c.SetDeadline(t)
353}
354
355func (c *requireDeadlineNetConn) Write(p []byte) (int, error) {
356 if !c.writeDeadlineIsSet {

Callers 1

sendRecvFunction · 0.45

Calls 1

SetDeadlineMethod · 0.45

Tested by

no test coverage detected