-
Notifications
You must be signed in to change notification settings - Fork 7.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
[HTTPD] support for multiple simultaneous requests (try 3) (IDFGH-9868) #11190
[HTTPD] support for multiple simultaneous requests (try 3) (IDFGH-9868) #11190
Conversation
7c3c379
to
16ea023
Compare
16ea023
to
ead5f42
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @chipweinberger
This approach looks simpler to me.
Although when I tried these changes, I got into some errors. The program crashed when calling long
handler. Can you please check and update the PR accordingly?
Thanks!
ead5f42
to
d9bf0ac
Compare
Pushed! It works now. If youre curious the fix, I had introduced a small bug right before pushing. 🤦 in |
123a7d1
to
97c3883
Compare
97c3883
to
1289d69
Compare
sha=1289d69870dc5faee84756e168dbacdb59f62a4a |
Hello @chipweinberger |
signed |
any updates? thanks |
Hello @chipweinberger |
perhaps I can split the PR up into 2 to make it reviewed faster? Let me know if that would be better.
|
Hello @chipweinberger |
PR has been merged into master via commit: 3824eba Closing this PR. |
Related Issue: #10594
Previous PR: #10669
Add basic support for supporting multiple simultaneous requests in HTTPD server.
This is the 3rd try of this PR:
Note: This PR does not add automatic support for simultaneous requests, but instead makes it more ergonomic for users to move a request to a thread that they must create themselves.
Advantages over raw sockets
httpd_resp_sendstr
) to send their response instead of raw socket send()Implementation:
httpd_req_async_handler_begin()
httpd_req_async_handler_complete()
when doneExample