Skip to content

Commit

Permalink
fixup! snet: expose setting buffer sizes for benefit of quic
Browse files Browse the repository at this point in the history
  • Loading branch information
matzf committed Jul 3, 2024
1 parent 7441cde commit eb310ce
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/snet/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,11 @@ func (c *Conn) SyscallConn() (syscall.RawConn, error) {
}

func (c *Conn) SetReadBuffer(n int) error {
c.conn.SetReadBuffer(n)
return nil
return c.conn.SetReadBuffer(n)
}

func (c *Conn) SetWriteBuffer(n int) error {
c.conn.SetWriteBuffer(n)
return nil
return c.conn.SetWriteBuffer(n)
}

func (c *Conn) SetDeadline(t time.Time) error {
Expand Down

0 comments on commit eb310ce

Please sign in to comment.