Skip to content

Commit f45b3a1

Browse files
committed
TUN-9882: Bump datagram v3 write channel capacity
Bumping from 16 to 512 gives each flow a bit more buffer if the local OS is having trouble writing to the origin. Closes TUN-9882
1 parent 1ac6c45 commit f45b3a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quic/v3/session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const (
2626
// The maximum amount of datagrams a session will queue up before it begins dropping datagrams.
2727
// This channel buffer is small because we assume that the dedicated writer to the origin is typically
2828
// fast enought to keep the channel empty.
29-
writeChanCapacity = 16
29+
writeChanCapacity = 512
3030

3131
logFlowID = "flowID"
3232
logPacketSizeKey = "packetSize"

0 commit comments

Comments
 (0)