From 1f0d28c3566bd69e5d85caba5b0fc8db0f712688 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 4 Nov 2024 15:40:43 +0000 Subject: [PATCH] handle overflow --- lib/session.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/session.js b/lib/session.js index d38d7e0..dccb39b 100644 --- a/lib/session.js +++ b/lib/session.js @@ -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;