alexcrichton / curl-rust

Rust bindings to libcurl
MIT License
1k stars 234 forks source link

curl smashes moka cache #520

Closed jchimene closed 10 months ago

jchimene commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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

tatsuya6502 commented 10 months ago

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

https://github.com/moka-rs/moka/issues/299

sagebind commented 10 months ago

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!