mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 12:47:36 +03:00
improve error message when the read buffer size can't be set
This commit is contained in:
parent
622ca23d4e
commit
75ed1401d8
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ var _ packetHandlerManager = &packetHandlerMap{}
|
||||||
func setReceiveBuffer(c net.PacketConn, logger utils.Logger) error {
|
func setReceiveBuffer(c net.PacketConn, logger utils.Logger) error {
|
||||||
conn, ok := c.(interface{ SetReadBuffer(int) error })
|
conn, ok := c.(interface{ SetReadBuffer(int) error })
|
||||||
if !ok {
|
if !ok {
|
||||||
return errors.New("connection doesn't allow setting of receive buffer size")
|
return errors.New("connection doesn't allow setting of receive buffer size. Not a *net.UDPConn?")
|
||||||
}
|
}
|
||||||
size, err := inspectReadBuffer(c)
|
size, err := inspectReadBuffer(c)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue