-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Not much going on here other than setting the default idle timeout for new connections. ActiveMQ seems to be pretty stuck at 30s for this value.
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
'use strict'; | ||
|
||
var u = require('../utilities'), | ||
DefaultPolicy = require('./default_policy'); | ||
|
||
module.exports = u.deepMerge({ | ||
defaultSubjects: false, | ||
|
||
connect: { | ||
options: { | ||
// By default ActiveMQ uses 30s for its idle timeout. The broker does not | ||
// seem to honor a change to this value from the client side, and also does | ||
// not send back that value as part of the handshake (it just returns | ||
// whatever value we sent, without honoring that value) | ||
idleTimeout: 30000, | ||
} | ||
} | ||
|
||
}, DefaultPolicy); |