drogonframework / drogonframework/drogon
Multiple simultaneous requests
Open
- Dominant language
- C++
- Stars
- 14.3k
- Forks
- 1.4k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 14
Description
Hello, An Tao!
I'm making a lot of API requests at the same time. I get the data divided into parts. I see 2 approaches:
1. drogon::HttpClient::newHttpClient(this->base_url) create for each request, but then error:
20250815 06:45:29.047886 UTC 5681 FATAL Too many open files (errno=24) sockets::createNonblockingOrDie - Socket.h:43.
2. If I do one the client runs smoothly, but for a very long time: sending is fast, and receiving responses is consistent and long.
Can you help me make sure that a large amount of data can be uploaded quickly?
Thank you very much in advance!
Contributor guide
Assessment
This issue has not been assessed yet.