diff --git a/lib/core/connection/msg.js b/lib/core/connection/msg.js index 3be032c27e..626da2a860 100644 --- a/lib/core/connection/msg.js +++ b/lib/core/connection/msg.js @@ -130,7 +130,8 @@ class Msg { } Msg.getRequestId = function() { - return ++_requestId; + _requestId = (_requestId + 1) & 0x7fffffff; + return _requestId; }; class BinMsg {