CodeIgniter Forums

Full Version: Make Session Lock type Configurable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm curious why the Session_files_driver::read() method exclusively uses LOCK_EX when obtaining a file lock? This tends to cause ajax requests to get blocked and process in succession rather than in parallel. It seems allowing read requests to use LOCK_SH and write requests to use LOCK_EX would be a more efficient solution, or perhaps make the lock type configurable. Perhaps I'm missing something.