Skip to content

Commit

Permalink
Change xid computation logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Lobach committed Dec 14, 2019
1 parent 0a7cb95 commit 554bfaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ConnectionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,8 @@ ConnectionManager.prototype.onPacketQueueReadable = function () {
header.type !== jute.OP_CODES.PING &&
header.type !== jute.OP_CODES.AUTH) {

this.xid = (this.xid % 2147483647) + 1;
header.xid = this.xid;
this.xid += 1;

// Only put requests that are not connect, ping and auth into
// the pending queue.
Expand Down

0 comments on commit 554bfaf

Please sign in to comment.