Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix for nonces bug appearing every hour and making server crash

  • Loading branch information...
commit bf926fbc5d4a3912a57bbfe13f8949a3c3f89956 1 parent 54df99f
@sedlan authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/http-auth.js
View
4 lib/http-auth.js
@@ -34,7 +34,7 @@ module.exports = {
* @param {Object} nonce.
* @api private.
*/
- 'expire_nonce' : function(nonce) {
+ 'expire_nonce' : function(nonce, nonces) {
delete nonces[nonce];
},
/**
@@ -207,7 +207,7 @@ module.exports = {
callbackObj.nonces[nonce] = {
count : 0,
};
- setTimeout(callbackObj.expire_nonce, callbackObj.nonce_expire_timeout, nonce);
+ setTimeout(callbackObj.expire_nonce, callbackObj.nonce_expire_timeout, nonce, this.nonces);
// generate opaque (TODO: move outside)
var opaque = callbackObj.md5("hostname or something");
Please sign in to comment.
Something went wrong with that request. Please try again.