]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1818] Fixed spellings
authorThomas Markwalder <tmark@isc.org>
Fri, 7 May 2021 20:26:35 +0000 (16:26 -0400)
committerThomas Markwalder <tmark@isc.org>
Mon, 17 May 2021 14:56:49 +0000 (10:56 -0400)
src/lib/config/cmd_http_listener.cc
src/lib/config/cmd_http_listener.h
src/lib/config/tests/cmd_http_listener_unittests.cc
src/lib/http/client.h
src/lib/http/http_thread_pool.cc
src/lib/http/http_thread_pool.h
src/lib/http/tests/mt_client_unittests.cc

index 499c3b391f03a09a620e2ba7bb47219934055c0b..0b2a5eba611a4f548a698a41b9d432715e83298f 100644 (file)
@@ -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
index 5ba3f8703a0cfd85008019530a3e070fe2fc207c..dbde66e03a450d5ce06de06d4f2a303b19352e63 100644 (file)
@@ -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:
index 6d57e1eeff7b9eef35cac192d35ab8b498f4f7cd..8af2571057453226efcae55072e2b0b71fbb4243 100644 (file)
@@ -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);
index 92682ec2a6500e64de61fcb8bd6acdf61af3d400..5b7c498f552bbba19a25d82f9a9c6c3a89c926d5 100644 (file)
@@ -252,7 +252,7 @@ public:
                           const CloseHandler& close_callback =
                           CloseHandler());
 
-    /// @brief Starts client's thread pool, if mult-threaded.
+    /// @brief Starts client's thread pool, if multi-threaded.
     void start();
 
     /// @brief Halts client-side IO activity.
index 4c1fb562a32127610f053b22884de785a656de0a..55b243284a407488b0a71bb89c039b16ab27ba2f 100644 (file)
@@ -65,7 +65,7 @@ HttpThreadPool::start() {
     // Set state to RUN.
     setRunState(RunState::RUN);
 
-    // Prep IOservice for run() invocations.
+    // Prep IOService for run() invocations.
     io_service_->restart();
 
     // Create a pool of threads, each calls run() on our
@@ -118,7 +118,7 @@ HttpThreadPool::stop() {
 
     // Stop our IOService.
     if (!io_service_->stopped()) {
-        // Flush cancelled (and ready) handlers.
+        // Flush canceled (and ready) handlers.
         io_service_->poll();
 
         // Stop the service
index ed0c2d8a3e52fc842a2d3ba2c18a488a108972a3..e937b2a4ebbc2d91c9951827334437f3b893e0e8 100644 (file)
@@ -39,7 +39,7 @@ public:
     /// of threads is fixed at this value.
     /// @param defer_start If true, creation of the threads is deferred until a subsequent
     /// call to @ref start().  In this case the pool's operational state post construction
-    /// is STOPPED.  If false, the construtor will invoke start() which will create the
+    /// is STOPPED.  If false, the constructor will invoke start() which will create the
     /// threads, placing the pool in RUN state.
     HttpThreadPool(asiolink::IOServicePtr io_service, size_t pool_size, bool defer_start = false);
 
@@ -60,7 +60,7 @@ public:
     /// than STOPPED.
     void start();
 
-    /// @brief Tranisitions the pool to STOPPED state.
+    /// @brief Transitions the pool to STOPPED state.
     ///
     /// It stops the pool by doing the following:
     /// -# Sets the state to SHUTDOWN.
index ece1612cc97e967e6ffb9591167ba1d77b24032d..de69cde0137eac3c389ff0b394c65ecc964f1810 100644 (file)
@@ -619,7 +619,7 @@ public:
         ASSERT_NO_THROW(client_->stop());
     }
 
-    /// @brief Verifies the client can be puased and shutdown while doing work.
+    /// @brief Verifies the client can be paused and shutdown while doing work.
     ///
     /// @param num_threads number of threads the HttpClient should use.
     /// A value of 0 puts the HttpClient in single-threaded mode.
@@ -693,7 +693,7 @@ public:
             }
         }
 
-        // Loop until the 1/2 the reuests are done, an error occurs,
+        // Loop until the 1/2 the requests are done, an error occurs,
         // or the time runs out.
         size_t rr_count = 0;
         while (rr_count < (expected_requests_)) {