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.89k stars 1.63k forks source link

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

Open tbarnekov opened 8 months ago

tbarnekov commented 8 months 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.