Skip to content

Define http client connection buffer size #842

Closed

Description

@umennel

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?

Activity

  1. deanberris commented on May 26, 2018

    @deanberris
    Member

    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?

  2. umennel commented on May 27, 2018

    @umennel
    Author

    @deanberris, I didn't find a way to use the options because the buffer size is set at compile-time. See #843

  3. added a commit that references this issue on May 28, 2018
    5a1c841
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions