-
-
Notifications
You must be signed in to change notification settings - Fork 47
Fixing huge memory leak. #139
base: main
Are you sure you want to change the base?
Conversation
Sorry, can you explain how would this prevent a "huge memory leak" ? |
The last line called printErrorAndDie no matter how the disconnect happened, even if successful. The issue is that then, in libraries.php, it created a loop, as the curl function did not receive a response, and threw a new printErrorAndDie. This looped until it completely filled the PHP allocated memory, before printing an error in the error.log file of Apache. |
By "no matter how the disconnect happened", I mean when the disconnect button was pressed, even if the disconnect was successful, it called an error. |
What do you mean by "disconnect button"? The logout button? I am a bit confused because there's no keyword "disconnect" in the SkinSystem codebase (so I have no clue what button you're talking about). |
Yes, the logout button, I am sorry. Basically, the file I edited (authenCore) takes care of the session, if I understood correctly. But when the session ends, no matter what, the printErrorAndDie function was fired. That caused it to call the curl function, which didn't have a |
Yeah took a look and ... this is an issue every time The problem is that The problem is not the removed line - it's the interaction between functions |
I get that printErrorAndDie calls curl which could itself call printErrorAndDie but on one condition: |
No description provided.