Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan committed Apr 12, 2018
2 parents 6194d22 + 7891aaa commit 2b65ee0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli/lib/gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ Gateway.prototype.start = (options) => {
server.listen(ipcPath);

server.on('connection', (socket) => {
//enable TCP_NODELAY
if (config.edgemicro.nodelay === true) {
debug("tcp nodelay set");
socket.setNoDelay(true);
}
socket = new JsonSocket(socket);
socket.on('message', (message) => {
if (message.command == 'reload') {
Expand Down

0 comments on commit 2b65ee0

Please sign in to comment.