Skip to content

Commit 2ac2559

Browse files
authored
Set rwnd from InitChunk (#364)
The rwnd has not been initialized from InitChunk then payload data will be hold in the pending queue until first SACK is received.
1 parent e597e33 commit 2ac2559

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

association.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,6 +1264,9 @@ func (a *Association) handleInit(pkt *packet, initChunk *chunkInit) ([]*packet,
12641264
// subtracting one from it.
12651265
a.payloadQueue.init(initChunk.initialTSN - 1)
12661266

1267+
a.setRWND(initChunk.advertisedReceiverWindowCredit)
1268+
a.log.Debugf("[%s] initial rwnd=%d", a.name, a.RWND())
1269+
12671270
for _, param := range initChunk.params {
12681271
switch v := param.(type) { // nolint:gocritic
12691272
case *paramSupportedExtensions:

0 commit comments

Comments
 (0)