box/Anemometer

Session flock() issue blocks multiple concurrent requests when using file-based sessions

geoffreyanderson opened this issue · 0 comments

When opening multiple requests against anemometer, a default Apache/PHP installation serializes all requests from a single user due to flock()'ing of the session file (see: https://bugs.php.net/bug.php?id=49073). The fix is to condense session manipulation and call "session_write_close()" before doing other long-running work (e.g. queries against the database for query digest data).