CLEANUP: assorted typo fixes in the code and comments
This is 17th iteration of typo fixes
diff --git a/src/h2.c b/src/h2.c
index de71203..84aa660 100644
--- a/src/h2.c
+++ b/src/h2.c
@@ -608,7 +608,7 @@
* On 1xx responses there is no ES on the HEADERS frame but there is no
* body. So remove the flag H2_MSGF_BODY and add H2_MSGF_RSP_1XX to
* notify the decoder another HEADERS frame is expected.
- * 204/304 resposne have no body by definition. So remove the flag
+ * 204/304 response have no body by definition. So remove the flag
* H2_MSGF_BODY and set H2_MSGF_BODYLESS_RSP.
*
* Note however that there is a special condition for Extended CONNECT.
@@ -782,7 +782,7 @@
if (!(*msgf & H2_MSGF_BODY) || ((*msgf & H2_MSGF_BODY_CL) && *body_len == 0) ||
(*msgf & H2_MSGF_BODY_TUNNEL)) {
- /* Response without body or tunnel sucessfully established */
+ /* Response without body or tunnel successfully established */
sl_flags |= HTX_SL_F_BODYLESS;
htx->flags |= HTX_FL_EOM;
}
diff --git a/src/http_ana.c b/src/http_ana.c
index cf1fb8c..b359d35 100644
--- a/src/http_ana.c
+++ b/src/http_ana.c
@@ -97,7 +97,7 @@
* There is a transition period during which there is no
* data. The stream is still in raw mode and SF_IGNORE flag is
* still set. When this happens, the new mux is responsible to
- * handle all errors. Thus we may leave immediatly.
+ * handle all errors. Thus we may leave immediately.
*/
BUG_ON(!(s->flags & SF_IGNORE) || !c_empty(&s->req));
@@ -1312,7 +1312,7 @@
b_set_data(&req->buf, b_size(&req->buf));
co_set_data(req, b_data(&si->l7_buffer));
- DBG_TRACE_DEVEL("perfrom a L7 retry", STRM_EV_STRM_ANA|STRM_EV_HTTP_ANA, s, s->txn);
+ DBG_TRACE_DEVEL("perform a L7 retry", STRM_EV_STRM_ANA|STRM_EV_HTTP_ANA, s, s->txn);
b_reset(&res->buf);
co_set_data(res, 0);
return 0;
diff --git a/src/mux_h1.c b/src/mux_h1.c
index a480d42..01343c3 100644
--- a/src/mux_h1.c
+++ b/src/mux_h1.c
@@ -81,7 +81,7 @@
#define H1S_F_NOT_FIRST 0x00000080 /* The H1 stream is not the first one */
#define H1S_F_BODYLESS_RESP 0x00000100 /* Bodyless response message */
-/* 0x00000200 unsued */
+/* 0x00000200 unused */
#define H1S_F_NOT_IMPL_ERROR 0x00000400 /* Set when a feature is not implemented during the message parsing */
#define H1S_F_PARSING_ERROR 0x00000800 /* Set when an error occurred during the message parsing */
#define H1S_F_PROCESSING_ERROR 0x00001000 /* Set when an error occurred during the message xfer */
@@ -2771,7 +2771,7 @@
release:
if (h1c->flags & H1C_F_ST_ATTACHED) {
- /* Don't release the H1 connetion right now, we must destroy the
+ /* Don't release the H1 connection right now, we must destroy the
* attached CS first. Here, the H1C must not be READY */
BUG_ON(!h1s || h1c->flags & H1C_F_ST_READY);
@@ -2920,7 +2920,7 @@
}
if (h1c->flags & H1C_F_ST_ATTACHED) {
- /* Don't release the H1 connetion right now, we must destroy the
+ /* Don't release the H1 connection right now, we must destroy the
* attached CS first. Here, the H1C must not be READY */
h1c->h1s->cs->flags |= (CS_FL_EOS|CS_FL_ERROR);
h1_alert(h1c->h1s);
diff --git a/src/mux_h2.c b/src/mux_h2.c
index 70d9b02..2d290d1 100644
--- a/src/mux_h2.c
+++ b/src/mux_h2.c
@@ -2880,7 +2880,7 @@
* Thus the stream is closed with the CANCEL error. Here we take care it is not
* an empty DATA Frame with the ES flag. The error is only handled if ES was
* already sent to the client because depending on the scheduling, these data may
- * have been sent before the server respnse but not handle here.
+ * have been sent before the server response but not handle here.
*/
TRACE_ERROR("Request DATA frame for aborted tunnel", H2_EV_RX_FRAME|H2_EV_RX_DATA, h2c->conn, h2s);
error = H2_ERR_CANCEL;
@@ -4694,7 +4694,7 @@
msgf = (h2c->dff & H2_F_HEADERS_END_STREAM) ? 0 : H2_MSGF_BODY;
msgf |= (*flags & H2_SF_BODY_TUNNEL) ? H2_MSGF_BODY_TUNNEL: 0;
/* If an Extended CONNECT has been sent on this stream, set message flag
- * to convert 200 response to 101 htx reponse */
+ * to convert 200 response to 101 htx response */
msgf |= (*flags & H2_SF_EXT_CONNECT_SENT) ? H2_MSGF_EXT_CONNECT: 0;
if (*flags & H2_SF_HEADERS_RCVD)
@@ -5196,7 +5196,7 @@
isteq(list[hdr].n, ist2(h2c->proxy->server_id_hdr_name, h2c->proxy->server_id_hdr_len)))
continue;
- /* Convert connection: upgrade to Extented connect from rfc 8441 */
+ /* Convert connection: upgrade to Extended connect from rfc 8441 */
if (isteqi(list[hdr].n, ist("connection"))) {
/* rfc 7230 #6.1 Connection = list of tokens */
struct ist connection_ist = list[hdr].v;
@@ -5836,7 +5836,7 @@
/* Skip the message payload (DATA blocks) and emit an empty DATA frame with the
* ES flag set for stream <h2s>. This function is called for response known to
* have no payload. Only DATA blocks are skipped. This means the trailers are
- * still emited. The caller must check the stream's status to detect any error
+ * still emitted. The caller must check the stream's status to detect any error
* which might have happened subsequently to a successful send. Returns the
* number of data bytes consumed, or zero if nothing done.
*/
diff --git a/src/ssl_ckch.c b/src/ssl_ckch.c
index 6932526..f9b8f18 100644
--- a/src/ssl_ckch.c
+++ b/src/ssl_ckch.c
@@ -1402,7 +1402,7 @@
int i;
/* The certificate update on the server side (backend)
- * can be done by rewritting a single pointer so no
+ * can be done by rewriting a single pointer so no
* locks are needed here. */
/* free the server current SSL_CTX */
SSL_CTX_free(ckchi->server->ssl_ctx.ctx);