summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcin Siodelski <marcin@isc.org>2018-06-14 14:40:26 +0200
committerMarcin Siodelski <marcin@isc.org>2018-06-14 14:40:26 +0200
commita4feb530158adacf7fab540b64da9384678978f2 (patch)
tree749d71ca076596066b1362ae881958c807a51342 /src
parent[5649] extended example config to showcase sync-timeout parameter. (diff)
downloadkea-a4feb530158adacf7fab540b64da9384678978f2.tar.xz
kea-a4feb530158adacf7fab540b64da9384678978f2.zip
[5649] Make control channel buffer sizes consistent.
Diffstat (limited to 'src')
-rw-r--r--src/lib/config/client_connection.cc2
-rw-r--r--src/lib/config/command_mgr.cc2
-rw-r--r--src/lib/http/client.cc2
-rw-r--r--src/lib/http/connection.h2
4 files changed, 4 insertions, 4 deletions
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<char, 1024> read_buf_;
+ std::array<char, 32768> 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<char, 4096> input_buf_;
+ std::array<char, 32768> 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<char, 4096> buf_;
+ std::array<char, 32768> buf_;
/// @brief Buffer used for outbound data.
std::string output_buf_;