]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5649] Make control channel buffer sizes consistent.
authorMarcin Siodelski <marcin@isc.org>
Thu, 14 Jun 2018 12:40:26 +0000 (14:40 +0200)
committerMarcin Siodelski <marcin@isc.org>
Thu, 14 Jun 2018 12:40:26 +0000 (14:40 +0200)
src/lib/config/client_connection.cc
src/lib/config/command_mgr.cc
src/lib/http/client.cc
src/lib/http/connection.h

index 92229379094c95a13a3016e61414f13514029aa0..a22442295ef773bb8f7cc3be78d98466cf8a60c7 100644 (file)
@@ -106,7 +106,7 @@ private:
     std::string current_command_;
 
     /// @brief Buffer into which chunks of the response are received.
-    std::array<char, 1024> read_buf_;
+    std::array<char, 32768> read_buf_;
 
     /// @brief Instance of the interval timer protecting against timeouts.
     IntervalTimer timer_;
index 55f35c80b7188dc8d6f1b855d76ce74d1a5b3be4..2057346338c8587fbe872b86b8518dad44807a6e 100644 (file)
@@ -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;
 
index bde07f09a59d8e2778161dedd506ffc7df2a9efd..f775330d64cd2561cb6aae6499ec1fb01eae8a03 100644 (file)
@@ -230,7 +230,7 @@ private:
     std::string buf_;
 
     /// @brief Input buffer.
-    std::array<char, 4096> input_buf_;
+    std::array<char, 32768> input_buf_;
 };
 
 /// @brief Shared pointer to the connection.
index 0a5b450587aaafc7cc58c3d4f2a0f0817fe574f4..9f9b4ea033f376538e31816134c6e7f3a895770d 100644 (file)
@@ -230,7 +230,7 @@ private:
     HttpAcceptorCallback acceptor_callback_;
 
     /// @brief Buffer for received data.
-    std::array<char, 4096> buf_;
+    std::array<char, 32768> buf_;
 
     /// @brief Buffer used for outbound data.
     std::string output_buf_;