-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does httplib use I/O multiplexing (select
, poll
, epoll
) and support thousands of concurrent connections?
#2076
Comments
No, each connection is handled in a blocking manner on a dedicated thread (using |
What if I don't have it set by default? I mean I didn't use |
From the link:
Looking at the source, it's actually Lines 129 to 134 in a4b2c61
|
I know, I mean, creating a new thread every time there's a new connection? Or is there an implementation of a thread pool inside httplib that doesn't create destruction threads all the time? |
Yes, threads are reused. That's the point of the task queue. Lines 779 to 787 in a4b2c61
|
Thanks, as long as threads aren't created and destroyed all the time, this library should be fine for me at the moment. |
Hello!
First of all, I want to say that I really like httplib—it's a very user-friendly library. I would like to know whether it utilizes I/O multiplexing techniques such as
select
,poll
, orepoll
. Additionally, does it support handling thousands of concurrent client connections efficiently?Thank you!
Thank you!
cpp-httplib/README.md
Line 875 in a4b2c61
The text was updated successfully, but these errors were encountered: