Skip to content

Commit

Permalink
gbn: increase defaultResendTimeout to 2 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorTigerstrom committed Nov 9, 2023
1 parent 70482c1 commit 43925b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gbn/gbn_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var (
const (
DefaultN = 20
defaultHandshakeTimeout = 100 * time.Millisecond
defaultResendTimeout = 100 * time.Millisecond
defaultResendTimeout = 2000 * time.Millisecond
finSendTimeout = 1000 * time.Millisecond
defaultResendMultiplier = 5
DefaultSendTimeout = math.MaxInt64
Expand Down
2 changes: 1 addition & 1 deletion mailbox/client_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const (

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

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

0 comments on commit 43925b9

Please sign in to comment.