forked from mirage/mirage-tcpip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If there are no ready segments, leave the tx window alone
Before, we set it to size zero, preventing us from sending any further data. See: mirage#140
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18f4946
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In context, I think
ready
inwindow ready
refers to received segments, which doesn't seem like a great place to get our advertised receive window from (since our ability to process the incoming data should inform this, rather than the remote end's ability to process incoming data).18f4946
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now I'm confused.
ready
is the received segment, but I thoughtwin
was being used to set our transmit window? The code just below does:Window.tx_ack
does:Window.tx_ack
is called fromSegment.Tx.rto_t
, which getswin
as:So what's the difference between
ack_win
andtx_win
?