]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5189] Couple minor comment improvements.
authorTomek Mrugalski <tomasz@isc.org>
Thu, 8 Jun 2017 11:15:15 +0000 (13:15 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Thu, 8 Jun 2017 11:15:15 +0000 (13:15 +0200)
src/lib/asiolink/tests/unix_domain_socket_unittest.cc
src/lib/asiolink/testutils/test_server_unix_socket.h
src/lib/asiolink/unix_domain_socket.cc

index a781b71a9705f0527d6f1053398335ad75fa3652..c08b4b0d2495012ad1f1feddb3829d4ee02efdea 100644 (file)
@@ -170,7 +170,8 @@ TEST_F(UnixDomainSocketTest, asyncSendReceive) {
     // some data have been sent.
     ASSERT_GT(sent_size, 0);
 
-    // Receive response from the socket.
+    // Receive response from the socket. Very small receive buffer ensures that
+    // we will read the response in chunks.
     std::array<char, 2> read_buf;
     size_t bytes_read = 0;
     std::string response;
index bbc0325ecc14a140f06a768d630c0dcfbb5b6b1f..3f21b9c0212d0b85f58451a1d1e07de6caa2bb6b 100644 (file)
@@ -72,6 +72,8 @@ public:
 
     /// @brief Generates response of a given length.
     ///
+    /// Note: The response may be a few bytes larger than requested.
+    ///
     /// @param response_size Desired response size.
     void generateCustomResponse(const uint64_t response_size);
 
index 04f51c0d1065dd59f35fbf65bf0b34428f11f2f2..7a04a9c76c50fe53fc7159b5d79183fc1827a730 100644 (file)
@@ -50,7 +50,7 @@ public:
     /// necessarily indicate a problem and the subsequent attempts to read
     /// and write to the socket will succeed. Therefore, the handler simply
     /// overrides this error code with success status. The user supplied
-    /// handler don't need to deal with the EINPROGRESS error codes.
+    /// handler doesn't need to deal with the EINPROGRESS error codes.
     ///
     /// @param remote_handler User supplied callback.
     /// @param ec Error code returned as a result of connection.