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

Method setErrorLocked

conn.go:215–222  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

213func (e *permanentError) Temporary() bool { return false }
214
215func (hc *halfConn) setErrorLocked(err error) error {
216 if e, ok := err.(net.Error); ok {
217 hc.err = &permanentError{err: e}
218 } else {
219 hc.err = err
220 }
221 return hc.err
222}
223
224// prepareCipherSpec sets the encryption and MAC states
225// that a subsequent changeCipherSpec will use.

Callers 7

readRecordOrCCSMethod · 0.80
retryReadRecordMethod · 0.80
sendAlertLockedMethod · 0.80
readHandshakeMethod · 0.80
WriteMethod · 0.80
handleKeyUpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected