summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Bampton <jbampton@gmail.com>2023-02-08 07:50:36 +1000
committerDaniel Stenberg <daniel@haxx.se>2023-02-08 08:30:05 +0100
commit0065b146eb02dddfff74336b0927b78f3732e015 (patch)
tree30c13d0d7417f878bf2f44413b3ce30e1e957e86
parent1695fcf57d53230adc6c8cbe20a283690019db02 (diff)
downloadcurl-0065b146eb02dddfff74336b0927b78f3732e015.tar.gz
misc: fix spelling
Closes #10437
-rw-r--r--docs/cmdline-opts/http3-only.d2
-rw-r--r--docs/cmdline-opts/http3.d4
-rw-r--r--lib/cf-socket.c2
-rw-r--r--lib/cfilters.h2
-rw-r--r--lib/http2.c2
-rw-r--r--lib/urldata.h2
-rw-r--r--lib/vtls/vtls.h2
-rw-r--r--tests/libtest/lib2402.c2
-rw-r--r--tests/libtest/lib2502.c2
-rw-r--r--tests/tests-httpd/test_03_goaway.py4
10 files changed, 12 insertions, 12 deletions
diff --git a/docs/cmdline-opts/http3-only.d b/docs/cmdline-opts/http3-only.d
index 24a384e9a..a1d7db91d 100644
--- a/docs/cmdline-opts/http3-only.d
+++ b/docs/cmdline-opts/http3-only.d
@@ -22,4 +22,4 @@ HTTP/3 when you know that the target speaks HTTP/3 on the given host and port.
This option will make curl fail if a QUIC connection cannot be established, it
will not attempt any other HTTP version on its own. Use --http3 for similar
-fuctionality *with* a fallback.
+functionality *with* a fallback.
diff --git a/docs/cmdline-opts/http3.d b/docs/cmdline-opts/http3.d
index dbc15de05..1f6326fce 100644
--- a/docs/cmdline-opts/http3.d
+++ b/docs/cmdline-opts/http3.d
@@ -14,7 +14,7 @@ Multi: mutex
Experimental: yes
---
Tells curl to try HTTP/3 to the host in the URL, but fallback to earlier
-HTTP versions if the HTTP/3 connection establishement fails. HTTP/3 is only
+HTTP versions if the HTTP/3 connection establishment fails. HTTP/3 is only
available for HTTPS and not for HTTP URLs.
This option allows a user to avoid using the Alt-Svc method of upgrading to
@@ -24,4 +24,4 @@ When asked to use HTTP/3, curl will issue a separate attempt to use older HTTP
versions with a slight delay, so if the HTTP/3 transfer fails or is very slow,
curl will still try to proceed with an older HTTP version.
-Use --http3-only for similar fuctionality *without* a fallback.
+Use --http3-only for similar functionality *without* a fallback.
diff --git a/lib/cf-socket.c b/lib/cf-socket.c
index cbe4d6010..e5ed3b647 100644
--- a/lib/cf-socket.c
+++ b/lib/cf-socket.c
@@ -258,7 +258,7 @@ static CURLcode socket_open(struct Curl_easy *data,
* we get sockfd == 0 and if called again, we get a valid one > 0.
* If we close the 0, we sometimes get failures in multi poll, as
* 0 seems also be the fd for the sockpair used for WAKEUP polling.
- * Very strange. Maybe this code shouldbe ifdef'ed for macOS, but
+ * Very strange. Maybe this code should be ifdef'ed for macOS, but
* on "real" OS, fd 0 is stdin and we never see that. So...
*/
fake_sclose(*sockfd);
diff --git a/lib/cfilters.h b/lib/cfilters.h
index 8f69ad501..94dc53f81 100644
--- a/lib/cfilters.h
+++ b/lib/cfilters.h
@@ -227,7 +227,7 @@ CURLcode Curl_cf_def_query(struct Curl_cfilter *cf,
* Create a new filter instance, unattached to the filter chain.
* Use Curl_conn_cf_add() to add it to the chain.
* @param pcf on success holds the created instance
- * @parm cft the filter type
+ * @param cft the filter type
* @param ctx the type specific context to use
*/
CURLcode Curl_cf_create(struct Curl_cfilter **pcf,
diff --git a/lib/http2.c b/lib/http2.c
index 55ea5096c..16ea3be0c 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -1793,7 +1793,7 @@ static ssize_t cf_h2_recv(struct Curl_cfilter *cf, struct Curl_easy *data,
while(stream->memlen == 0 /* have no data for this stream */
&& !ctx->pause_stream_id /* we are not paused either */
- && ctx->inbuflen == 0) { /* and out inpput buffer is emtpy */
+ && ctx->inbuflen == 0) { /* and out input buffer is empty */
/* Receive data from the "lower" filters */
nread = Curl_conn_cf_recv(cf->next, data, ctx->inbuf, H2_BUFSIZE, err);
if(nread < 0) {
diff --git a/lib/urldata.h b/lib/urldata.h
index 2c752359f..19c5ac7e3 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -1353,7 +1353,7 @@ struct UrlState {
size_t drain; /* Increased when this stream has data to read, even if its
socket is not necessarily is readable. Decreased when
checked. */
- struct Curl_data_priority priority; /* shallow coyp of data->set */
+ struct Curl_data_priority priority; /* shallow copy of data->set */
#endif
curl_read_callback fread_func; /* read callback/function */
diff --git a/lib/vtls/vtls.h b/lib/vtls/vtls.h
index 0f8801c29..0d9e74a69 100644
--- a/lib/vtls/vtls.h
+++ b/lib/vtls/vtls.h
@@ -76,7 +76,7 @@ CURLsslset Curl_init_sslset_nolock(curl_sslbackend id, const char *name,
#define ALPN_H3 "h3"
/* conservative sizes on the ALPN entries and count we are handling,
- * we can increase these if we ever feel the need or have to accomodate
+ * we can increase these if we ever feel the need or have to accommodate
* ALPN strings from the "outside". */
#define ALPN_NAME_MAX 10
#define ALPN_ENTRIES_MAX 3
diff --git a/tests/libtest/lib2402.c b/tests/libtest/lib2402.c
index 0bb2e261a..ab20f92c0 100644
--- a/tests/libtest/lib2402.c
+++ b/tests/libtest/lib2402.c
@@ -78,7 +78,7 @@ int test(char *URL)
/* no peer verify */
easy_setopt(curl[i], CURLOPT_SSL_VERIFYPEER, 0L);
easy_setopt(curl[i], CURLOPT_SSL_VERIFYHOST, 0L);
- /* wait for first connection establised to see if we can share it */
+ /* wait for first connection established to see if we can share it */
easy_setopt(curl[i], CURLOPT_PIPEWAIT, 1L);
/* go verbose */
easy_setopt(curl[i], CURLOPT_VERBOSE, 1L);
diff --git a/tests/libtest/lib2502.c b/tests/libtest/lib2502.c
index f88bec8f7..e5a7061b0 100644
--- a/tests/libtest/lib2502.c
+++ b/tests/libtest/lib2502.c
@@ -77,7 +77,7 @@ int test(char *URL)
easy_setopt(curl[i], CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_3ONLY);
easy_setopt(curl[i], CURLOPT_CONNECTTIMEOUT_MS, (long)5000);
easy_setopt(curl[i], CURLOPT_CAINFO, "./certs/EdelCurlRoot-ca.cacert");
- /* wait for first connection establised to see if we can share it */
+ /* wait for first connection established to see if we can share it */
easy_setopt(curl[i], CURLOPT_PIPEWAIT, 1L);
/* go verbose */
easy_setopt(curl[i], CURLOPT_VERBOSE, 1L);
diff --git a/tests/tests-httpd/test_03_goaway.py b/tests/tests-httpd/test_03_goaway.py
index 370f7ab71..6444ce1cb 100644
--- a/tests/tests-httpd/test_03_goaway.py
+++ b/tests/tests-httpd/test_03_goaway.py
@@ -52,7 +52,7 @@ class TestGoAway:
self.r = None
def long_run():
curl = CurlClient(env=env)
- # send 10 chunks of 1024 bytest in a response body with 100ms delay inbetween
+ # send 10 chunks of 1024 bytes in a response body with 100ms delay in between
urln = f'https://{env.authority_for(env.domain1, proto)}' \
f'/curltest/tweak?id=[0-{count - 1}]'\
'&chunks=10&chunk_size=1024&chunk_delay=100ms'
@@ -85,7 +85,7 @@ class TestGoAway:
self.r = None
def long_run():
curl = CurlClient(env=env)
- # send 10 chunks of 1024 bytest in a response body with 100ms delay inbetween
+ # send 10 chunks of 1024 bytes in a response body with 100ms delay in between
urln = f'https://{env.authority_for(env.domain1, proto)}' \
f'/curltest/tweak?id=[0-{count - 1}]'\
'&chunks=10&chunk_size=1024&chunk_delay=100ms'