Proper handling of max-age and expires for cookies#7925
Proper handling of max-age and expires for cookies#7925watzon wants to merge 9 commits intocrystal-lang:masterfrom watzon:patch/cookie-expiration
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. |
asterite
left a comment
There was a problem hiding this comment.
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 <yomoejoe@gmail.com>
|
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-agevalues, I decided to get to ball rolling again.