• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Make Session Lock type Configurable

#1
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.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.