Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Hey,
I am trying currently trying to use the http_listener. While it does work, I am suffering from massive performance issues / hanging.
Some HTTP requests I throw against the http_listener are handled immediately, while others take up to 20 seconds. The request that hang are usually the first request made, as well as requests that are being made after a few seconds of no requests.
Here's an example of how I register the handlers and start the listener loop:
I am using cpprestsdk version v2.10.16 compiled on Arch.
I have not included the functions that are being called inside spawnRequestHandler in the code sample because the delay happens before spawnRequestHandler is called.