Skip to content

Commit

Permalink
[0.3.1] Remove keepAlive initial-delay
Browse files Browse the repository at this point in the history
  • Loading branch information
FGRibreau committed Dec 1, 2012
1 parent d7a43a6 commit 135a49f
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 5 deletions.
22 changes: 22 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Copyright (c) 2012 Redsmin - Francois-Guillaume Ribreau

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
4 changes: 2 additions & 2 deletions lib/Endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ _.extend(Endpoint.prototype, require('events').EventEmitter.prototype, {
this.socket.on('error', this.onError);

this.socket.setTimeout(0);
this.socket.setKeepAlive(true, 30);
this.socket.setNoDelay(true);
this.socket.setNoDelay();
this.socket.setKeepAlive(true);
},

reconnect:function(number, delay){
Expand Down
2 changes: 1 addition & 1 deletion lib/RedisClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ _.extend(RedisClient.prototype, require('events').EventEmitter.prototype, {
* Enable/disable keep-alive functionality, and optionally set the initial delay
* before the first keepalive probe is sent on an idle socket. enable defaults to false.
*/
this.socket.setKeepAlive(true, 30);
this.socket.setKeepAlive(true);

/**
* Disables the Nagle algorithm. By default TCP connections use the Nagle algorithm,
Expand Down
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "redsmin",
"description": "Redsmin daemon for the Redsmin service",
"version": "0.3.0",
"description": "Redsmin proxy daemon for the Redsmin service",
"version": "0.3.1",
"keywords": [
"redis",
"gui",
"redsmin",
"proxy"
],
Expand All @@ -23,6 +24,12 @@
"bin": {
"redsmin": "./bin/redsmin"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/Redsmin/redsmin/blob/master/LICENSE"
}
],
"dependencies": {
"lodash": "~0.3.2",
"winston": "~0.6.1",
Expand Down

0 comments on commit 135a49f

Please sign in to comment.