Skip to content

Commit

Permalink
Set rwnd from InitChunk (#364)
Browse files Browse the repository at this point in the history
The rwnd has not been initialized from InitChunk
then payload data will be hold in the pending
queue until first SACK is received.
  • Loading branch information
cnderrauber authored Feb 18, 2025
1 parent e597e33 commit 2ac2559
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions association.go
Original file line number Diff line number Diff line change
Expand Up @@ -1264,6 +1264,9 @@ func (a *Association) handleInit(pkt *packet, initChunk *chunkInit) ([]*packet,
// subtracting one from it.
a.payloadQueue.init(initChunk.initialTSN - 1)

a.setRWND(initChunk.advertisedReceiverWindowCredit)
a.log.Debugf("[%s] initial rwnd=%d", a.name, a.RWND())

for _, param := range initChunk.params {
switch v := param.(type) { // nolint:gocritic
case *paramSupportedExtensions:
Expand Down

0 comments on commit 2ac2559

Please sign in to comment.