Skip to content

Commit

Permalink
Fix missing Upstream() for timeout debug conns
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Dec 26, 2023
1 parent a6e8fa3 commit 3ac055b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/bufio/deadline/serial.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ func (c *SerialConn) ReadBuffer(buffer *buf.Buffer) error {
return c.ExtendedConn.ReadBuffer(buffer)
}

func (c *SerialConn) Upstream() any {
return c.ExtendedConn
}

type SerialPacketConn struct {
N.NetPacketConn
access sync.Mutex
Expand Down

0 comments on commit 3ac055b

Please sign in to comment.