Permalink
Browse files

push grace up to 60s from 1s, so session will not be re-put if nothin…

…g has changed and it has been less than 1m since last put
  • Loading branch information...
1 parent a0597bc commit fdc23646788fb3a99113f08039d5dc2d96e34476 @ianshward committed May 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/connect-couchdb.js
@@ -143,7 +143,7 @@ module.exports = function(connect) {
this.db.put(doc, fn);
} else {
// Otherwise, only save if > 1s has elaspsed since last save.
- if (!locks[sid] || expires > locks[sid] + 1000) {
+ if (!locks[sid] || expires > locks[sid] + 60000) {
locks[sid] = expires;
sess.lastAccess = _lastAccess;
if (_expires) sess.cookie._expires = _expires;

0 comments on commit fdc2364

Please sign in to comment.