microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.96k stars 1.65k forks source link

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

Closed tbarnekov closed 10 months ago

tbarnekov commented 2 years ago

The http_listener on Windows (http.sys) gives very poor throughput when tranferring large responses. Adding the HTTP_SEND_RESPONSE_FLAG_BUFFER_DATA when streaming the response can increase the throughput ten-fold.