actix-web
actix-web copied to clipboard
experimental-io-uring feature on actix-files causes panic
trafficstars
Expected Behavior
The experimental-io-uring feature on actix-files should work on kernels with io-uring support.
Current Behavior
Enabling the feature causes a panic when serving a named file:
'cannot access a scoped thread local variable without calling `set` first', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-1.0.1/src/lib.rs:168:9
Possible Solution
Steps to Reproduce (for bugs)
- Enable the
experimental-io-uringfeature on actix-files - Serve a NamedFile.
- Visit the endpoint.
Context
Working to reduce latency when serving static files.
Your Environment
- Rust Version: 1.68.2
- Actix Web Version: 4.3.1
- Actix Files Version: 0.6.2