Skip to content

Commit

Permalink
handle overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
grs committed Nov 4, 2024
1 parent a613302 commit 1f0d28c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -662,9 +662,9 @@ Session.prototype.send = function (sender, tag, data, format) {
};

Session.prototype._write_flow = function (link) {
var fields = {'next_incoming_id':this.incoming.next_transfer_id,
var fields = {'next_incoming_id':this.incoming.next_transfer_id>>>0,
'incoming_window':this.incoming.window,
'next_outgoing_id':this.outgoing.next_transfer_id,
'next_outgoing_id':this.outgoing.next_transfer_id>>>0,
'outgoing_window':this.outgoing.window
};
this.incoming.max_transfer_id = fields.next_incoming_id + fields.incoming_window;
Expand Down

0 comments on commit 1f0d28c

Please sign in to comment.