Disable the minimum size of a network packet to be sent

This commit is contained in:
bernat 2021-03-30 20:40:36 +02:00 committed by Axel1092
parent b4b50cc48a
commit 7580c682f6
3 changed files with 5 additions and 2 deletions

View File

@ -106,6 +106,9 @@ namespace tcp {
if (_done) {
return;
}
// This forces not using Nagle's algorithm.
// Improves the sync mode velocity on Linux by a factor of ~3.
_socket.set_option(boost::asio::ip::tcp::no_delay(true));
log_debug("streaming client: connected to", ep);
// Send the stream id to subscribe to the stream.
const auto &stream_id = _token.get_stream_id();

View File

@ -195,7 +195,7 @@ unset BOOST_BASENAME
# -- Get rpclib and compile it with libc++ and libstdc++ -----------------------
# ==============================================================================
RPCLIB_PATCH=v2.2.1_c3
RPCLIB_PATCH=v2.2.1_c5
RPCLIB_BASENAME=rpclib-${RPCLIB_PATCH}-${CXX_TAG}
RPCLIB_LIBCXX_INCLUDE=${PWD}/${RPCLIB_BASENAME}-libcxx-install/include

View File

@ -36,7 +36,7 @@ rem If not set set the build dir to the current dir
if "%BUILD_DIR%" == "" set BUILD_DIR=%~dp0
if not "%BUILD_DIR:~-1%"=="\" set BUILD_DIR=%BUILD_DIR%\
set RPC_VERSION=v2.2.1_c3
set RPC_VERSION=v2.2.1_c5
set RPC_SRC=rpclib-src
set RPC_SRC_DIR=%BUILD_DIR%%RPC_SRC%\
set RPC_INSTALL=rpclib-install