Skip to content

Multithreaded webserver that can work with mg_http_serve_dir() #3181

Discussion options

You must be logged in to vote

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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by scaprile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3180 on June 23, 2025 12:19.