MCPcopy Create free account
hub / github.com/Hidden-Node/GooseRelayVPN-AndroidClient / HasPendingTx

Method HasPendingTx

internal/session/session.go:214–218  ·  view source on GitHub ↗

HasPendingTx reports whether DrainTx would emit at least one frame.

()

Source from the content-addressed store, hash-verified

212
213// HasPendingTx reports whether DrainTx would emit at least one frame.
214func (s *Session) HasPendingTx() bool {
215 s.mu.Lock()
216 defer s.mu.Unlock()
217 return s.synNeeded || len(s.txBuf) > 0 || (s.closeReq && !s.finSent)
218}
219
220// HasPendingSYN reports whether the next drain will emit a SYN frame.
221// Used by the carrier to prioritise new-connection setup over ongoing data

Callers 4

drainAllMethod · 0.80
releaseInFlightMethod · 0.80

Calls

no outgoing calls