Find file History
Pull request Compare This branch is 39 commits ahead of tnantoka:master.
Latest commit ce6e06c Mar 12, 2016 @drfloob drfloob resolve rawberg/connect-sqlite3#11: server hang due to missing callba…
…ck invocation in `touch`

See express-session's implementation:

The callback needs to be invoked in all calls to `touch`, or else `writeend` is never called inside express-session's `end` method, which finishes the response. In connect-sqlite3's `touch` method, the callback was not invoked if the cookie wasn't set to expire (which happens when no maxAge is set for the cookie, or with resave=false in the connect-sqlite3 configuration). This resulted in a browser hang and an `ERR_CONTENT_LENGTH_MISMATCH` due to a missing chunk at the end of the response.

This patch fixes that by invoking the `touch` callback even if the db doesn't require an update.
Failed to load latest commit information.