|
Bugzilla – Full Text Bug Listing |
| Summary: | Do not shrink advWin when we already sent the FIN | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | natale.patriciello |
| Component: | tcp | Assignee: | natale.patriciello |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ns-bugs |
| Priority: | P3 | ||
| Version: | ns-3-dev | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: |
Fixing the bug
Fix the bug + regression test |
||
Created attachment 3044 [details]
Fix the bug + regression test
This patch contains also the regression test
Fixed in 13328:ed34bc65af73 |
Created attachment 3043 [details] Fixing the bug The current code check is in AdvertisedWindowSize is based on IsFinished() from TcpRxBuffer. It assumes that if we get the FIN, then IsFinished() returns true. However, the method checks also for any pending data; in case we send a FIN, then we have a retx timeout, we advertise a shrinked window.