mirror of
https://github.com/soypat/lneto.git
synced 2026-08-18 21:54:01 +00:00
tcp.Conn:add Flush method and more lock protection
This commit is contained in:
+2
-2
@@ -90,8 +90,8 @@ func (rtx *ringTx) Free() int {
|
||||
return r.Free()
|
||||
}
|
||||
|
||||
// Buffered returns the amount of written but unsent bytes.
|
||||
func (rtx *ringTx) Buffered() int {
|
||||
// BufferedUnsent returns the amount of written but unsent bytes.
|
||||
func (rtx *ringTx) BufferedUnsent() int {
|
||||
r, _ := rtx.unsentRing()
|
||||
return r.Buffered()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user