? Success

User tests: Successful: Unsuccessful:

avatar fastslack
fastslack
20 Oct 2014

If we made multiple request using websocket, the old maps are stacked creating a memory overflow.

avatar fastslack fastslack - open - 20 Oct 2014
avatar jissues-bot jissues-bot - change - 20 Oct 2014
Labels Added: ?
avatar wilsonge
wilsonge - comment - 20 Oct 2014

How on earth are you even using this file xD

avatar wilsonge
wilsonge - comment - 20 Oct 2014

On a serious note though it looks like this function is designed to be called more than once as the doc block states If the pattern already exists it will be overwritten.. So not sure that is the best place to reset the variable?

avatar mbabker
mbabker - comment - 20 Oct 2014

How on earth are you even using this file xD

Build a separate file from index.php to handle your requirements. There's a lot you can do if you're willing to write the code :-P

avatar fastslack
fastslack - comment - 20 Oct 2014

@wilsonge Actually im using this file in 2 ways. One the Webservices API created by Chris Davenport:

https://github.com/chrisdavenport/j3-rest-api

And another way that im using it is with my own implementation of websocket, that call multiple request in seconds so you can look more detailed the memory leak.

https://github.com/fastslack/matware-libraries/tree/master/libraries/matware/socket

Maybe you are right, there is not the correct way to clear the variable. Creating a new method to reset the variables should be a good solution. What do you think?

avatar zero-24 zero-24 - change - 21 Oct 2014
Category Libraries
avatar roland-d
roland-d - comment - 4 Sep 2015

Spoke to @fastslack and he said the issue can be closed.

avatar roland-d roland-d - change - 4 Sep 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-09-04 15:09:26
Closed_By roland-d
avatar roland-d roland-d - close - 4 Sep 2015

Add a Comment

Login with GitHub to post a comment