You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
robocoder opened this issue
Jul 28, 2009
· 3 comments
Labels
BugFor errors / faults / flaws / inconsistencies etc.MajorIndicates the severity or impact or benefit of an issue is much higher than normal but not critical.
However, session_start() was always called because session_id() returns a string; even an empty string (""), would mean the conditional evaluated to true.
This isn't necessarily wrong as it either starts or resumes an existing session. In fact, it masks a problem where MySQL is configured with a low limit on concurrent connections. By calling session_start() in index.php, requests associated with the same session are funneled in serial fashion.
Following #828, the session_start() call was removed. We are starting to see reports of "SQLSTATE![ User xxxxxx already has more than 'max_user_connections' active connections" appearing in some dashboard widgets.
vipsoft, if I read the comment on the php site, it says that the session_start is blocking all other http requests trying to load concurrently that are also doing session_start, until the session has been committed.
It sounds to me like this would indeed slow down significantly the dashboard, and is probably not a good thing.
Was it the behavior prior to the session changes (for example in 0.2.x ?)
#886 will give sites with higher mysql max_connections to set PIWIK_ENABLE_SESSION_START=0 and get parallel requests for potentially faster (certainly more responsive in appearance) dashboard loading.
BugFor errors / faults / flaws / inconsistencies etc.MajorIndicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Prior to #828, index.php contained:
However, session_start() was always called because session_id() returns a string; even an empty string (""), would mean the conditional evaluated to true.
This isn't necessarily wrong as it either starts or resumes an existing session. In fact, it masks a problem where MySQL is configured with a low limit on concurrent connections. By calling session_start() in index.php, requests associated with the same session are funneled in serial fashion.
See comments:
Following #828, the session_start() call was removed. We are starting to see reports of "SQLSTATE![ User xxxxxx already has more than 'max_user_connections' active connections" appearing in some dashboard widgets.
Proposed patch:
This duplicates the functionality of "session.auto_start=On" (see #881), but is Zend Framework-friendly.
Pros:
Cons:
The text was updated successfully, but these errors were encountered: