Sebastián Magrí

Results 25 comments of Sebastián Magrí

This is what I'm currently doing to handle the preflight request: ``` #[route(OPTIONS, "/endpoint/")] fn options_handler { Response::build() .raw_header("Access-Control-Allow-Origin", "http://host.tld") .raw_header("Access-Control-Allow-Methods", "OPTIONS, POST") .raw_header("Access-Control-Allow-Headers", "Content-Type") .finalize() } ``` However, for...

I believe having this type into the framework would be really good. Thanks @SergioBenitez

@al8n it's hard to reproduce in a development environment also from me, but under real load it starts happening after some minutes. Tracking down the code it seems like the...

AsyncCache. I think it might be related to using wait too often. I had to do that since I started seeing some issues otherwise, but now I've removed it and...

I've also tried to track if .close is getting called explicitly at some point but didn't find any cases.

For the record, the issue I get when I don't explicitly wait after inserting is that then I find the expiration map mostly already borrowed on update.

Found something interesting using tokio-console, when this condition happens, I can only see the policy task in the tasks list. so could this confirm that `AsyncCache::spawn` is going down, potentially...

As I'm putting the cache instance as managed state in a Rocket application, i wonder if the second case could be possible, however in such case also the policy should...

@al8n let me know if I can help checking somehow. We're looking forward to deploy a component to production using stretto and would like to get these issues sorted out.

@al8n any updates on this front? I had a few days out and would like to catch up with this.