MCPcopy Create free account
hub / github.com/imroc/req / closeSend

Method closeSend

internal/http3/state_tracking_stream.go:56–68  ·  view source on GitHub ↗
(e error)

Source from the content-addressed store, hash-verified

54}
55
56func (s *stateTrackingStream) closeSend(e error) {
57 s.mx.Lock()
58 defer s.mx.Unlock()
59
60 // clear the stream the first time both the send
61 // and receive are finished
62 if s.sendErr == nil {
63 if s.recvErr != nil {
64 s.clearer.clearStream(s.StreamID())
65 }
66 s.sendErr = e
67 }
68}
69
70func (s *stateTrackingStream) closeReceive(e error) {
71 s.mx.Lock()

Callers 4

newStateTrackingStreamFunction · 0.95
CloseMethod · 0.95
CancelWriteMethod · 0.95
WriteMethod · 0.95

Calls 4

LockMethod · 0.80
UnlockMethod · 0.80
clearStreamMethod · 0.65
StreamIDMethod · 0.65

Tested by

no test coverage detected