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

Method sendAlert

conn.go:932–936  ·  view source on GitHub ↗

sendAlert sends a TLS alert message.

(err alert)

Source from the content-addressed store, hash-verified

930
931// sendAlert sends a TLS alert message.
932func (c *Conn) sendAlert(err alert) error {
933 c.out.Lock()
934 defer c.out.Unlock()
935 return c.sendAlertLocked(err)
936}
937
938const (
939 // tcpMSSEstimate is a conservative estimate of the TCP maximum segment

Callers 15

readRecordOrCCSMethod · 0.95
retryReadRecordMethod · 0.95
readHandshakeMethod · 0.95
handleRenegotiationMethod · 0.95
handleKeyUpdateMethod · 0.95
clientHandshakeMethod · 0.95
pickTLSVersionMethod · 0.95
readClientHelloMethod · 0.95

Calls 1

sendAlertLockedMethod · 0.95

Tested by

no test coverage detected