Skip to content

[5.4] fix rate limiter cache leak - #20684

Merged
taylorotwell merged 1 commit into
laravel:5.4from
halaei:fix-rate-limiter-cache-leak
Aug 22, 2017
Merged

[5.4] fix rate limiter cache leak#20684
taylorotwell merged 1 commit into
laravel:5.4from
halaei:fix-rate-limiter-cache-leak

Conversation

@halaei

@halaei halaei commented Aug 22, 2017

Copy link
Copy Markdown
Contributor

The added if-block detects and fix the leak. The leak is still possible when the added if-block fails, although practically unlikely.

@halaei

halaei commented Aug 22, 2017

Copy link
Copy Markdown
Contributor Author

IMO, still better to have increment() method accept a third decay/ttl param.

@taylorotwell

Copy link
Copy Markdown
Member

What do you mean by "leak". Need more explanation.

@it-can

it-can commented Aug 22, 2017

Copy link
Copy Markdown
Contributor

Hi Taylor, see this issue #20641

@taylorotwell
taylorotwell merged commit 50368da into laravel:5.4 Aug 22, 2017
@taylorotwell

Copy link
Copy Markdown
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants