From: Sergey Bronnikov Date: Mon, 16 Jan 2023 16:49:57 +0000 (+0300) Subject: lib: fix typos X-Git-Tag: curl-7_88_0~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11708d6f006db0960c8ff6eab2fd9b1d15d7e178;p=thirdparty%2Fcurl.git lib: fix typos Closes https://github.com/curl/curl/pull/10307 --- diff --git a/lib/connect.c b/lib/connect.c index bb03123746..bff1bb1506 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -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 { diff --git a/lib/connect.h b/lib/connect.h index 0372d387a8..f4db38e40c 100644 --- a/lib/connect.h +++ b/lib/connect.h @@ -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. diff --git a/lib/ftp.c b/lib/ftp.c index 27bc53b0bb..7766f76c70 100644 --- 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; diff --git a/tests/tests-httpd/test_03_goaway.py b/tests/tests-httpd/test_03_goaway.py index db8be80f1e..133dd612f9 100644 --- a/tests/tests-httpd/test_03_goaway.py +++ b/tests/tests-httpd/test_03_goaway.py @@ -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: diff --git a/tests/tests-httpd/test_04_stuttered.py b/tests/tests-httpd/test_04_stuttered.py index 622254bb3b..05538403d1 100644 --- a/tests/tests-httpd/test_04_stuttered.py +++ b/tests/tests-httpd/test_04_stuttered.py @@ -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):