forked from cory/tildefriends
Disable Nagle's algorithm to try to make things more uniformly responsive.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3368 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -403,6 +403,8 @@ function handleConnection(client) {
|
||||
}
|
||||
}
|
||||
|
||||
client.noDelay = true;
|
||||
|
||||
client.onError(function(error) {
|
||||
logError(client.peerName + " - - [" + new Date() + "] " + error);
|
||||
});
|
||||
|
@ -14,6 +14,7 @@ Connection.prototype.connect = function(host, port) {
|
||||
let connection = this;
|
||||
connection.close();
|
||||
connection.socket = new Socket();
|
||||
connection.socket.noDelay = true;
|
||||
return connection.socket.connect(host, port).then(function() {
|
||||
connection.buffer = "";
|
||||
return Promise.all([
|
||||
|
Reference in New Issue
Block a user