]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib: fix typos
authorSergey Bronnikov <estetus@gmail.com>
Mon, 16 Jan 2023 16:49:57 +0000 (19:49 +0300)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 17 Jan 2023 08:39:25 +0000 (03:39 -0500)
Closes https://github.com/curl/curl/pull/10307

lib/connect.c
lib/connect.h
lib/ftp.c
tests/tests-httpd/test_03_goaway.py
tests/tests-httpd/test_04_stuttered.py

index bb03123746777d18ac063746c48df85cf0c85149..bff1bb1506bcf30e8aa6d1191fde081192d0f3f2 100644 (file)
@@ -341,7 +341,7 @@ void Curl_conncontrol(struct connectdata *conn,
 }
 
 /**
- * job walking the matching addr infos, createing a sub-cfilter with the
+ * job walking the matching addr infos, creating a sub-cfilter with the
  * provided method `cf_create` and running setup/connect on it.
  */
 struct eyeballer {
index 0372d387a80f5d744252ba5fd98fb2df03217774..f4db38e40cbcc77950a68823187a278edc199809 100644 (file)
@@ -89,7 +89,7 @@ void Curl_conncontrol(struct connectdata *conn,
 
 /**
  * Create a cfilter for making an "ip" connection to the
- * given address, using paramters from `conn`. The "ip" connection
+ * given address, using parameters from `conn`. The "ip" connection
  * can be a TCP socket, a UDP socket or even a QUIC connection.
  *
  * It MUST use only the supplied `ai` for its connection attempt.
index 27bc53b0bbe56d149c726339a8419d6f7e4a0d04..7766f76c70ece659aa97897caf13da38fb5a83b4 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -286,7 +286,7 @@ static CURLcode AcceptServerConnect(struct Curl_easy *data)
   conn->bits.do_more = FALSE;
 
   (void)curlx_nonblock(s, TRUE); /* enable non-blocking */
-  /* Replace any filter on SECONDARY with one listeing on this socket */
+  /* Replace any filter on SECONDARY with one listening on this socket */
   result = Curl_conn_tcp_accepted_set(data, conn, SECONDARYSOCKET, &s);
   if(result)
     return result;
@@ -1252,7 +1252,7 @@ static CURLcode ftp_state_use_port(struct Curl_easy *data,
   /* store which command was sent */
   ftpc->count1 = fcmd;
 
-  /* Replace any filter on SECONDARY with one listeing on this socket */
+  /* Replace any filter on SECONDARY with one listening on this socket */
   result = Curl_conn_tcp_listen_set(data, conn, SECONDARYSOCKET, &portsock);
   if(result)
     goto out;
index db8be80f1e0c0415555bd288fb1ad95401649224..133dd612f97914c108b71b5605197611d763e393 100644 (file)
@@ -67,7 +67,7 @@ class TestGoAway:
         r.check_responses(count=count, exp_status=200)
         assert len(r.stats) == count, f'{r.stats}'
         # reload will shut down the connection gracefully with GOAWAY
-        # we expect to see a second connetion opened afterwards
+        # we expect to see a second connection opened afterwards
         assert r.total_connects == 2
         for idx, s in enumerate(r.stats):
             if s['num_connects'] > 0:
@@ -102,7 +102,7 @@ class TestGoAway:
         r.check_responses(count=count, exp_status=200)
         assert len(r.stats) == count, f'{r.stats}'
         # reload will shut down the connection gracefully with GOAWAY
-        # we expect to see a second connetion opened afterwards
+        # we expect to see a second connection opened afterwards
         assert r.total_connects == 2
         for idx, s in enumerate(r.stats):
             if s['num_connects'] > 0:
index 622254bb3b1cb5717ceb24d95dc1f234d7691e5c..05538403d1709abcec413f3b2e2aa56e8aaf45a3 100644 (file)
@@ -54,7 +54,7 @@ class TestStuttered:
         r.check_responses(count=1, exp_status=200)
 
     # download 50 files in 100 chunks a 100 bytes with 10ms delay between
-    # prepend 100 file requests to warm up connection procesing limits
+    # prepend 100 file requests to warm up connection processing limits
     # (Apache2 increases # of parallel processed requests after successes)
     @pytest.mark.parametrize("proto", ['h2', 'h3'])
     def test_04_02_100_100_10(self, env: Env,
@@ -78,7 +78,7 @@ class TestStuttered:
             f'avg time of transfer: {t_avg} [{i_min}={t_min}, {i_max}={t_max}]'
 
     # download 50 files in 1000 chunks a 10 bytes with 1ms delay between
-    # prepend 100 file requests to warm up connection procesing limits
+    # prepend 100 file requests to warm up connection processing limits
     # (Apache2 increases # of parallel processed requests after successes)
     @pytest.mark.parametrize("proto", ['h2', 'h3'])
     def test_04_03_1000_10_1(self, env: Env, httpd, nghttpx, repeat, proto):
@@ -101,7 +101,7 @@ class TestStuttered:
             f'avg time of transfer: {t_avg} [{i_min}={t_min}, {i_max}={t_max}]'
 
     # download 50 files in 10000 chunks a 1 byte with 10us delay between
-    # prepend 100 file requests to warm up connection procesing limits
+    # prepend 100 file requests to warm up connection processing limits
     # (Apache2 increases # of parallel processed requests after successes)
     @pytest.mark.parametrize("proto", ['h2', 'h3'])
     def test_04_04_1000_10_1(self, env: Env, httpd, nghttpx, repeat, proto):