You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to define the server connection buffer size using BOOST_NETWORK_HTTP_SERVER_CONNECTION_BUFFER_SIZE. It is set to a default value if undefined. See boost/network/protocol/http/server/async_connection.hpp. Depending on the hardware, this may significantly increase data transfer rates, as shown in #726.
Could we have a similar macro for the client connection?
Sounds like a good idea to me. I do think that since the client has options you can set to affect this already -- if not, then we should do both, controlling the size of the buffers from options and potentially changing the default for the option with a compile-time macro.
Activity
deanberris commentedon May 26, 2018
Sounds like a good idea to me. I do think that since the client has options you can set to affect this already -- if not, then we should do both, controlling the size of the buffers from options and potentially changing the default for the option with a compile-time macro.
Do you mind sending a pull request to do that?
umennel commentedon May 27, 2018
@deanberris, I didn't find a way to use the options because the buffer size is set at compile-time. See #843
Make http client connection buffer size configurable (#843)