mirror of
https://github.com/wavelog/wavelog
synced 2026-08-13 18:41:16 -04:00
in 2014, when codeigniter 3 was designed the overall performance wasn't that important so redis and memcached session drivers used a polling mechanism to wait for the session lock to be released. This polling happend once per second, which is a huge performance penalty for serialized AJAX requests of the same user. Since we live in the modern age now and performance is important, this commit replaces the polling with an interval of 100ms. The timeout is still 30s, so if a lock is not released within 30s the request will fail, but if the lock is released after 100ms the next request will pick it up immediately instead of waiting for a full second. If someone got issues because of 100ms polling to a redis or memcached server, I assume they have bigger problems than a few milliseconds of delay. |
||
|---|---|---|
| .. | ||
| drivers | ||
| index.html | ||
| Session.php | ||
| Session_driver.php | ||
| SessionHandlerInterface.php | ||