Skip to content

Commit c89536c

Browse files
committed
Increase default keepalive value.
Low keepalive values may be important in some applications, but this is something that should be decided after some thought. A minute keepalive should be acceptable in most cases, so is more appropriate as a default than a low value.
1 parent e11b011 commit c89536c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var Connection = require('./connection')
1010
* Default options
1111
*/
1212
var defaultConnectOptions = {
13-
keepalive: 10,
13+
keepalive: 60,
1414
protocolId: 'MQIsdp',
1515
protocolVersion: 3,
1616
reconnectPeriod: 1000

0 commit comments

Comments
 (0)