-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Hello there! I'm currently trying to write multithreaded servers in C++ and decided to use Libasyncd, as it seemed simple and straightforward to work with. I already managed to write a simple http server following the examples, but it looks like your library only allows it to work in one thread.
I also tried changing the "server.thread" setting to "1", but this just caused the server to stop working without any errors. Apparently, it is not sent to a separate thread, as well as it is not launched in several threads, since when sending a request into the url of my server, I get "Connection refused".
So, my question is:
- (most importantly) is it possible to use this library to start the server in several(let's say in 4) threads, without running the code 4 times in 4 different sessions?
- what is the "server.thread" parameter responsible for, how should it work, and when should it be used? This was not clear
from the documentation. - if you can't use multithreading using the library, can you suggest different ways to solve this problem?
I would be very grateful if I get answers to these questions! Thank you!
Metadata
Metadata
Assignees
Labels
No labels