boostorg / boostorg/beast

file_win32 ops not used with beast::basic_stream

Open
#1,516 0 comments 0 reactions 0 assignees View on GitHub
Design
Dominant language
C++
Stars
4.8k
Forks
694
Avg merge
12h 48m
Merged PRs (30d)
1

Description

The overloads of `http::write` and `http::async_write` for doing direct win32 file transfers are skipped when using `beast::basic_stream`, because the socket type does not match. I'm not sure this optimization is possible, at least not in the current form, because it would break the rate policy and the timeout feature.

Users who care more about native `::TransmitFile` can simply use `net::basic_stream_socket` and forgo the features in `beast::basic_stream`. More research is needed into a solution, or if this can be solved at all.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.