Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[minor] move socket changes to Peer instead of server

  • Loading branch information...
commit 68349d8d488e2678919739ca2b598379a87a62d2 1 parent 2d070ac
Cam Pedersen authored

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 2  lib/peer.js
  2. 2  nucleus.js
2  lib/peer.js
@@ -16,6 +16,8 @@ var Peer = function (options) {
16 16
       that.handleConnection(arguments);
17 17
     }
18 18
   );
  19
+  this.$.setNoDelay(true); // disable write buffering
  20
+  this.$.setKeepAlive(true, 1000);
19 21
 }
20 22
 
21 23
 /*
2  nucleus.js
@@ -72,8 +72,6 @@ Nucleus.prototype.createServer = function () {
72 72
   this.$ = net.createServer(function (socket) {
73 73
     that.connectionHandler(socket);
74 74
   });
75  
-  this.$.setNoDelay(true); // disable write buffering
76  
-  this.$.setKeepAlive(true, 1000);
77 75
   this.$.listen(this.port, function () {
78 76
     that.ee.emit('server.ready');
79 77
   });

0 notes on commit 68349d8

Please sign in to comment.
Something went wrong with that request. Please try again.