tdebarochez/connect-couchdb — pull request #18 by alappe (2012-06-05 20:51:22+00:00)
Title: reduces PUT-requests by fixing a looping condition

This fixes a broken looping condition (because doc.sess.lastAccess is explicitly set to null several lines above) that caused issued PUT-requests on every check for cookie lifetime…

The test ensures that the PUT is not done if the cookie is still alive (though the style of the test is debatable… decide if you want it like this…).