Skip to content
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

curl smashes moka cache #520

Closed
jchimene opened this issue Aug 8, 2023 · 4 comments
Closed

curl smashes moka cache #520

jchimene opened this issue Aug 8, 2023 · 4 comments

Comments

@jchimene
Copy link

jchimene commented Aug 8, 2023

However it (Easy transport) works with mini-moka. I think it has something to do with the curl process() method freeing memory.
Debugging this is above my pay grade.
If this issue attracts any interest, I will work up a reproducer.
I've filed an issue w/ moka as well.

@jchimene
Copy link
Author

jchimene commented Aug 8, 2023

It's looking like this is a lazy_static issue. Since it's being deprecated, I've switched the cache to once_cell. Seems to be working. I'm reserving the right to re-open this once I've cleaned up the carnage.

@jchimene jchimene closed this as completed Aug 8, 2023
@jchimene
Copy link
Author

jchimene commented Aug 8, 2023

It's the moka implementation of expire_after() that conflicts with curl. Somehow.

@jchimene jchimene reopened this Aug 8, 2023
@tatsuya6502
Copy link

I've filed an issue w/ moka as well.

moka-rs/moka#299

@sagebind
Copy link
Collaborator

I'm not really sure I understand what moka is or how it relates to curl, but from the linked issue it seems like the problem has been solved anyway. If I am mistaken then feel free to this issue. 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

No branches or pull requests

3 participants