-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proper handling of max-age and expires for cookies #7925
Conversation
It looks like the failures are due to a memory leak of some kind, any idea what could be causing it? |
I think compiler specs are leaking. I just noticed that codegen specs that don't use the prelude are allocating memory using However, specs usually don't allocate that much memory in tests so maybe there's something else going on... but it's hard to debug. Plus it only happens on linux 32, mostly. |
It's weird. I can't even run the full library specs on my machine or it eats up all my RAM. I've had to force shutdown my laptop twice. The cookie specs themselves pass though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
However, the time comparisons seem a bit fragile, for example if there's a hiccup in CI or something. I think we should bring timecop into the standard library to be able to properly test these things. But we can do it later.
Co-Authored-By: Blacksmoke16 <[email protected]>
Holy moley, the specs actually passed |
Looks like we just need to get @straight-shoota in here for review |
@watzon Two approvals is what's needed (would gr8 to have @straight-shoota review nevertheless). |
I'd like another approval of the changes made. There's only been one review since the last commit. |
Does this PR need someone to adopt it? I could really use the change. |
@yui-knk I believe so. I just don't have time to work on the requested changes right now. |
This PR is based off of #5042. Seeing as it has been sitting there for some time with no movement, and the current Cookie parsing is breaking with large
max-age
values, I decided to get to ball rolling again.