MCPcopy Create free account
hub / github.com/XTLS/REALITY / RecordHeaderError

Struct RecordHeaderError

conn.go:600–611  ·  view source on GitHub ↗

RecordHeaderError is returned when a TLS record header is invalid.

Source from the content-addressed store, hash-verified

598
599// RecordHeaderError is returned when a TLS record header is invalid.
600type RecordHeaderError struct {
601 // Msg contains a human readable string that describes the error.
602 Msg string
603 // RecordHeader contains the five bytes of TLS record header that
604 // triggered the error.
605 RecordHeader [5]byte
606 // Conn provides the underlying net.Conn in the case that a client
607 // sent an initial handshake that didn't look like TLS.
608 // It is nil if there's already been a handshake or a TLS alert has
609 // been written to the connection.
610 Conn net.Conn
611}
612
613func (e RecordHeaderError) Error() string { return "tls: " + e.Msg }
614

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected