Skip to content
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

Allow http_listener with http.sys backend to buffer response to increase throughput #1773

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Release/src/http/listener/http_server_httpsys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ void windows_request_context::async_process_response()
StartThreadpoolIo(pServer->m_threadpool_io);
const unsigned long error_code = HttpSendHttpResponse(pServer->m_hRequestQueue,
m_request_id,
HTTP_SEND_RESPONSE_FLAG_MORE_DATA,
HTTP_SEND_RESPONSE_FLAG_MORE_DATA | HTTP_SEND_RESPONSE_FLAG_BUFFER_DATA,
&win_api_response,
NULL,
NULL,
Expand Down Expand Up @@ -1197,7 +1197,7 @@ void windows_request_context::send_entity_body(_In_reads_(data_length) unsigned
StartThreadpoolIo(pServer->m_threadpool_io);
auto error_code = HttpSendResponseEntityBody(pServer->m_hRequestQueue,
m_request_id,
this_is_the_last_chunk ? NULL : HTTP_SEND_RESPONSE_FLAG_MORE_DATA,
(this_is_the_last_chunk ? NULL : HTTP_SEND_RESPONSE_FLAG_MORE_DATA) | HTTP_SEND_RESPONSE_FLAG_BUFFER_DATA,
1,
&dataChunk,
NULL,
Expand Down