forked from boostorg/beast
fix #1108 The `flat_stream` is a stream wrapper designed to overcome a performance limitation of the `boost::asio::ssl::stream` implementation. Specifically, when writing buffer sequences having length greater than one, the `ssl::stream` implementation does not use scatter-gather I/O and instead performs a kernel transition for every buffer in the sequence. The wrapper addresses this problem by allocating memory and presenting the buffer sequence into a single buffer, using some logic to determine when this allocation is advantageous versus simply passing the buffers through as-is. See Also: https://github.com/boostorg/asio/issues/100 https://stackoverflow.com/questions/50026167/performance-drop-on-port-from-beast-1-0-0-b66-to-boost-1-67-0-beast
30 lines
851 B
CMake
30 lines
851 B
CMake
#
|
|
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
|
|
#
|
|
# Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
#
|
|
# Official repository: https://github.com/boostorg/beast
|
|
#
|
|
|
|
GroupSources(example/common common)
|
|
GroupSources(test/extras/include/boost/beast extras)
|
|
GroupSources(subtree/unit_test/include/boost/beast extras)
|
|
GroupSources(include/boost/beast beast)
|
|
GroupSources(test/example/common "/")
|
|
|
|
add_executable (tests-example-common
|
|
${BOOST_BEAST_FILES}
|
|
${COMMON_FILES}
|
|
${EXTRAS_FILES}
|
|
${TEST_MAIN}
|
|
Jamfile
|
|
detect_ssl.cpp
|
|
flat_stream.cpp
|
|
root_certificates.cpp
|
|
server_certificate.cpp
|
|
session_alloc.cpp
|
|
ssl_stream.cpp
|
|
)
|
|
|
|
set_property(TARGET tests-example-common PROPERTY FOLDER "tests") |