actix-web icon indicating copy to clipboard operation
actix-web copied to clipboard

experimental-io-uring feature on actix-files causes panic

Open veeshi opened this issue 2 years ago • 0 comments
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)

  1. Enable the experimental-io-uring feature on actix-files
  2. Serve a NamedFile.
  3. 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

veeshi avatar Apr 18 '23 12:04 veeshi