summaryrefslogtreecommitdiffstats
path: root/src/lib/config
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2021-05-07 22:26:35 +0200
committerThomas Markwalder <tmark@isc.org>2021-05-17 16:56:49 +0200
commit4b8ca2cd7f08ffe34586f4eeaf173e9760b29b12 (patch)
tree7720b20040f5f776f1ce89df13b4ecfc49710369 /src/lib/config
parent[#1818] Added pause and resume to HAService (diff)
downloadkea-4b8ca2cd7f08ffe34586f4eeaf173e9760b29b12.tar.xz
kea-4b8ca2cd7f08ffe34586f4eeaf173e9760b29b12.zip
[#1818] Fixed spellings
Diffstat (limited to 'src/lib/config')
-rw-r--r--src/lib/config/cmd_http_listener.cc2
-rw-r--r--src/lib/config/cmd_http_listener.h2
-rw-r--r--src/lib/config/tests/cmd_http_listener_unittests.cc6
3 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/config/cmd_http_listener.cc b/src/lib/config/cmd_http_listener.cc
index 499c3b391f..0b2a5eba61 100644
--- a/src/lib/config/cmd_http_listener.cc
+++ b/src/lib/config/cmd_http_listener.cc
@@ -66,7 +66,7 @@ CmdHttpListener::start() {
HttpListener::RequestTimeout(TIMEOUT_AGENT_RECEIVE_COMMAND),
HttpListener::IdleTimeout(TIMEOUT_AGENT_IDLE_CONNECTION_TIMEOUT)));
- // Create the thread pooi with immediate start.
+ // Create the thread pool with immediate start.
threads_.reset(new HttpThreadPool(thread_io_service_, thread_pool_size_));
// Instruct the HTTP listener to actually open socket, install
diff --git a/src/lib/config/cmd_http_listener.h b/src/lib/config/cmd_http_listener.h
index 5ba3f8703a..dbde66e03a 100644
--- a/src/lib/config/cmd_http_listener.h
+++ b/src/lib/config/cmd_http_listener.h
@@ -27,7 +27,7 @@ namespace config {
/// configured thread pool size.
///
/// @note This class is NOT compatible with Kea core single-threading.
-/// It is incumbant upon the owner to ensure the Kea core multi-threading
+/// It is incumbent upon the owner to ensure the Kea core multi-threading
/// is (or will be) enabled when creating instances of this class.
class CmdHttpListener {
public:
diff --git a/src/lib/config/tests/cmd_http_listener_unittests.cc b/src/lib/config/tests/cmd_http_listener_unittests.cc
index 6d57e1eeff..8af2571057 100644
--- a/src/lib/config/tests/cmd_http_listener_unittests.cc
+++ b/src/lib/config/tests/cmd_http_listener_unittests.cc
@@ -218,14 +218,14 @@ public:
}
}
- /// @brief Determines if the listner should be paused.
+ /// @brief Determines if the listener should be paused.
///
/// @param num_pauses desired number of pauses
/// @param num_done number of clients that have completed their requests.
///
/// @return True if the listener should be paused.
bool shouldPause(size_t num_pauses, size_t num_done) {
- // True if the number of clients done is a mulitple of the number of pauses.
+ // True if the number of clients done is a multiple of the number of pauses.
return (!paused_ && num_pauses && num_done && !(num_done % num_pauses));
}
@@ -637,7 +637,7 @@ TEST_F(CmdHttpListenerTest, basics) {
EXPECT_FALSE(listener_->getThreadIOService()->stopped());
// Verify we can pause it. We should still be listening, threads intact,
- // IOservice stopped, state set to PAUSED.
+ // IOService stopped, state set to PAUSED.
ASSERT_NO_THROW_LOG(listener_->pause());
ASSERT_TRUE(listener_->isPaused());
EXPECT_EQ(listener_->getThreadCount(), 4);