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
With each request in the web, the request is added to a request queue. Then, Thread pool chooses a thread to serve the request and send back the response.
Finally, this thread is added to the thread pool. In nanohttp, whole the concept is managed through the Context. In nanohttp, it is possible to make nested context. For each request, a thread stack is created.
Since two requests can use a single context, this can run into problems. So the context should be handled thread safe using thread_local.
The text was updated successfully, but these errors were encountered:
With each request in the web, the request is added to a request queue. Then,
Thread pool
chooses a thread to serve the request and send back the response.Finally, this thread is added to the thread pool. In nanohttp, whole the concept is managed through the Context. In nanohttp, it is possible to make nested context. For each request, a thread stack is created.
Since two requests can use a
single context
, this can run into problems. So the context should be handled thread safe usingthread_local
.The text was updated successfully, but these errors were encountered: