Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preparation for checking session transmitted bytes
Modify session record and state to maintain transmitted bytes in both directions. If the number of bytes is not kept, lost packets will disrupt the session. When the client is sending data, the byte count should be equal to our count plus the size of the new data. Otherwise, the packet is assumed to be a duplicate and will be dropped. When the client is requesting pending data, the byte count should be equal to ours. If it is smaller, we should re-send our last packet.
- Loading branch information
Showing
1 changed file
with
35 additions
and
18 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