Skip to content

Commit 6a938aa

Browse files
committed
gbn: increase defaultResendTimeout to 2 seconds
1 parent 73e0809 commit 6a938aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gbn/gbn_conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var (
2121
const (
2222
DefaultN = 20
2323
defaultHandshakeTimeout = 100 * time.Millisecond
24-
defaultResendTimeout = 100 * time.Millisecond
24+
defaultResendTimeout = 2000 * time.Millisecond
2525
finSendTimeout = 1000 * time.Millisecond
2626
defaultResendMultiplier = 5
2727
DefaultSendTimeout = math.MaxInt64

mailbox/client_conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const (
4343

4444
// gbnTimeout is the timeout that we want the gbn connection to wait
4545
// to receive ACKS from the peer before resending the queue.
46-
gbnTimeout = 1000 * time.Millisecond
46+
gbnTimeout = 2000 * time.Millisecond
4747

4848
// gbnN is the queue size, N, that the gbn server will use. The gbn
4949
// server will send up to N packets before requiring an ACK for the

0 commit comments

Comments
 (0)