Looks like fix for #61 (901c8e0) is causing some wired race condition.
In my usecase req.session.save is calling also encrypting the data before storing. And usually it takes more little longer than non-encrypted version. Because of the async nature of session save the next request is starting most of the time before the save is complete. And this next request is fetching the old version of session.
Is there any possibility to add some flag to control the async/sync session save or any other solution?
Looks like fix for #61 (901c8e0) is causing some wired race condition.
In my usecase
req.session.saveis calling also encrypting the data before storing. And usually it takes more little longer than non-encrypted version. Because of the async nature of session save the next request is starting most of the time before the save is complete. And this next request is fetching the old version of session.Is there any possibility to add some flag to control the async/sync session save or any other solution?