Skip to content

Commit

Permalink
wndSize fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottyPoi committed Aug 6, 2023
1 parent 83c8061 commit ef925d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class PacketManager {
timestampDifferenceMicroseconds: this.congestionControl.reply_micro,
wndSize: Math.min(
2 ** 32 - 1,
this.congestionControl.max_window - this.congestionControl.cur_window
Math.abs(this.congestionControl.max_window - this.congestionControl.cur_window)
),
}
const options: PacketOptions<T> = {
Expand Down

0 comments on commit ef925d6

Please sign in to comment.