From: Marcin Siodelski Date: Thu, 14 Jun 2018 12:40:26 +0000 (+0200) Subject: [5649] Make control channel buffer sizes consistent. X-Git-Tag: Kea-1.4.0~1^2~3^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4feb530158adacf7fab540b64da9384678978f2;p=thirdparty%2Fkea.git [5649] Make control channel buffer sizes consistent. --- diff --git a/src/lib/config/client_connection.cc b/src/lib/config/client_connection.cc index 9222937909..a22442295e 100644 --- a/src/lib/config/client_connection.cc +++ b/src/lib/config/client_connection.cc @@ -106,7 +106,7 @@ private: std::string current_command_; /// @brief Buffer into which chunks of the response are received. - std::array read_buf_; + std::array read_buf_; /// @brief Instance of the interval timer protecting against timeouts. IntervalTimer timer_; diff --git a/src/lib/config/command_mgr.cc b/src/lib/config/command_mgr.cc index 55f35c80b7..2057346338 100644 --- a/src/lib/config/command_mgr.cc +++ b/src/lib/config/command_mgr.cc @@ -33,7 +33,7 @@ using namespace isc::data; namespace { /// @brief Maximum size of the data chunk sent/received over the socket. -const size_t BUF_SIZE = 8192; +const size_t BUF_SIZE = 32768; class ConnectionPool; diff --git a/src/lib/http/client.cc b/src/lib/http/client.cc index bde07f09a5..f775330d64 100644 --- a/src/lib/http/client.cc +++ b/src/lib/http/client.cc @@ -230,7 +230,7 @@ private: std::string buf_; /// @brief Input buffer. - std::array input_buf_; + std::array input_buf_; }; /// @brief Shared pointer to the connection. diff --git a/src/lib/http/connection.h b/src/lib/http/connection.h index 0a5b450587..9f9b4ea033 100644 --- a/src/lib/http/connection.h +++ b/src/lib/http/connection.h @@ -230,7 +230,7 @@ private: HttpAcceptorCallback acceptor_callback_; /// @brief Buffer for received data. - std::array buf_; + std::array buf_; /// @brief Buffer used for outbound data. std::string output_buf_;