diff --git a/lib/index.js b/lib/index.js index 8c1d8bb6..fae3ea66 100644 --- a/lib/index.js +++ b/lib/index.js @@ -303,7 +303,9 @@ exports.Socket = function (type) { this._outgoing = new BatchList(); this._zmq.onReadReady = function () { - self._flushReads(); + setImmediate(function(){ + self._flushReads(); + }); }; this._zmq.onSendReady = function () {