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
I'm running the HTTP Server in a manner basically identical to the http_async.rs example. When two calls are received at the exact same, it seems like the server spawns a new thread. Is this true or are the requests always queued in the Tokio event loop?
The text was updated successfully, but these errors were encountered:
fredfortier
changed the title
Does the HTTP Server Spawn New Thread?
Does the HTTP Server Spawn Threads?
Apr 26, 2019
No, the ServerBuilder only starts one thread for the Tokio-core event loop (unless configured different via .threads(n)) all incoming requests are queued and executed on that one thread.
Please re-open in case you have further questions or believe the server does not work as expected.
I'm running the HTTP Server in a manner basically identical to the
http_async.rs
example. When two calls are received at the exact same, it seems like the server spawns a new thread. Is this true or are the requests always queued in the Tokio event loop?The text was updated successfully, but these errors were encountered: