mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
fix error message when the UDP receive buffer size can't be increased
This commit is contained in:
parent
0b97ae5632
commit
369442a170
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ func setReceiveBuffer(c net.PacketConn, logger utils.Logger) error {
|
|||
return fmt.Errorf("failed to determine receive buffer size: %w", err)
|
||||
}
|
||||
if newSize == size {
|
||||
return fmt.Errorf("failed to determine receive buffer size: %w", err)
|
||||
return fmt.Errorf("failed to increase receive buffer size (wanted: %d kiB, got %d kiB)", protocol.DesiredReceiveBufferSize/1024, newSize/1024)
|
||||
}
|
||||
if newSize < protocol.DesiredReceiveBufferSize {
|
||||
return fmt.Errorf("failed to sufficiently increase receive buffer size (was: %d kiB, wanted: %d kiB, got: %d kiB)", size/1024, protocol.DesiredReceiveBufferSize/1024, newSize/1024)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue