Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/rpc-client/mailboxes/tcp-mailbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ var processMsgs = function(mailbox, pkgs) {
};

var processMsg = function(mailbox, pkg) {
clearCbTimeout(mailbox, pkg.id);
var cb = mailbox.requests[pkg.id];
if(!cb) {
return;
}
}
clearCbTimeout(mailbox, pkg.id);
delete mailbox.requests[pkg.id];

var tracer = new Tracer(mailbox.opts.rpcLogger, mailbox.opts.rpcDebugLog, mailbox.opts.clientId, pkg.source, pkg.resp, pkg.traceId, pkg.seqId);
Expand Down
2 changes: 2 additions & 0 deletions lib/rpc-server/acceptors/tcp-acceptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var Acceptor = function(opts, cb){
this.sockets = {};
this.msgQueues = {};
this.cb = cb;
this.nextSocketId = 0;
};
util.inherits(Acceptor, EventEmitter);

Expand All @@ -39,6 +40,7 @@ pro.listen = function(port) {
});

this.server.on('connection', function(socket) {
socket.id = self.nextSocketId++;
self.sockets[socket.id] = socket;
socket.composer = new Composer({maxLength: self.pkgSize});

Expand Down