You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a problem that I've been stuck with for a few days now. If I try implementing a simple reverse proxy based on the axum example, I inevitably stumble upon the open sockets limit (with or without concurrency limit layer).
There's an nginx on 80, that just responds with default text. I'm using wrk for tests.
wrk -t12 -c1000 -d30s http://localhost:8080/
...
thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: hyper::Error(Connect, ConnectError("tcp open error", Os { code: 24, kind: Uncategorized, message: "Too many open files" }))', src/main.rs:40:31
But then, using hyper::Client as the handling service, rewriting the request URL at the middleware level works just fine.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
Here is a problem that I've been stuck with for a few days now. If I try implementing a simple reverse proxy based on the axum example, I inevitably stumble upon the open sockets limit (with or without concurrency limit layer).
There's an nginx on 80, that just responds with default text. I'm using wrk for tests.
But then, using hyper::Client as the handling service, rewriting the request URL at the middleware level works just fine.
Is there something here I don't understand?
Beta Was this translation helpful? Give feedback.
All reactions