found failing case for multipacket

This commit is contained in:
Patricio Whittingslow
2025-10-27 00:23:57 -03:00
parent ed81d7446d
commit 6b3a2c429c
3 changed files with 21 additions and 7 deletions
+2
View File
@@ -69,6 +69,8 @@ func (conn *Conn) State() State { return conn.h.State() }
// and available to read via a [Conn.Read] call.
func (conn *Conn) BufferedInput() int { return conn.h.BufferedInput() }
func (conn *Conn) AvailableInput() int { return conn.h.FreeRx() }
// AvailableOutput returns amount of bytes available to write to output
// before [Conn.Write] returns an error due to insufficient space to store outgoing data.
func (conn *Conn) AvailableOutput() int { return conn.h.AvailableOutput() }
+5
View File
@@ -290,6 +290,11 @@ func (h *Handler) FreeTx() int {
return h.bufTx.Free()
}
// FreeRx returns the amount of space free in the receive buffer.
func (h *Handler) FreeRx() int {
return h.bufRx.Free()
}
// SizeRx returns the size of the TCP receive ring buffer.
func (h *Handler) SizeRx() int {
return h.bufRx.Size()