Multithreaded webserver that can work with mg_http_serve_dir() #3181
-
Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Please do not open an issue to ask a question. Moved. Please see our documentation, and follow the guidelines in our tutorials. https://mongoose.ws/documentation/tutorials/core/multi-threaded/ |
Beta Was this translation helpful? Give feedback.
Please do not open an issue to ask a question. Moved.
Your particular doubt is not a Mongoose issue, is your issue.
The reasons we can foresee to have a multithreaded server, as those explained in the multithreaded example tutorial. We don't see a reason to use multithreading to serve files.
The way to serve files/dirs is already explained and shown in all the other web server examples and tutorials and we don't feel there's need for further examples or explanations; that is pretty obvious and any developer should be able to do that: when your URL is not one of those that belong to the API that needs multithreading, you just call the serve functions.
Please see our documentation, and foll…