CLEANUP: assorted typo fixes in the code and comments
This is 18th iteration of typo fixes
diff --git a/doc/configuration.txt b/doc/configuration.txt
index 6e8aa51..e6dce41 100644
--- a/doc/configuration.txt
+++ b/doc/configuration.txt
@@ -17557,7 +17557,7 @@
src_http_fail_cnt([<table>]) : integer
Returns the cumulative number of HTTP response failures triggered by the
incoming connection's source address in the current proxy's stick-table or in
- the designated stick-table. This includes the both repsonse errors and 5xx
+ the designated stick-table. This includes the both response errors and 5xx
status codes other than 501 and 505. See also sc/sc0/sc1/sc2_http_fail_cnt.
If the address is not found, zero is returned.
diff --git a/src/dns.c b/src/dns.c
index dfdf546..835975c 100644
--- a/src/dns.c
+++ b/src/dns.c
@@ -193,7 +193,7 @@
* elem is removed from the list */
__ha_barrier_store();
- /* awake appctx beacause it may have other
+ /* awake appctx because it may have other
* message to receive
*/
appctx_wakeup(ds->appctx);
@@ -592,7 +592,7 @@
if (ci_putchk(si_ic(si), &trash) == -1) {
/* should never happen since we
* check available_room is large
- * enought here.
+ * enough here.
*/
si_rx_room_blk(si);
ret = 0;
@@ -626,7 +626,7 @@
read:
- /* if session is not a waiter it means there is no commited
+ /* if session is not a waiter it means there is no committed
* message into rx_buf and we are free to use it
* Note: we need a load barrier here to not miss the
* delete from the list
@@ -674,7 +674,7 @@
break;
}
- /* enougth data is available into the channel to read the message until the end */
+ /* enough data is available into the channel to read the message until the end */
/* read from the channel until the end of the message */
co_getblk(si_oc(si), ds->rx_msg.area + ds->rx_msg.offset, ds->rx_msg.len - ds->rx_msg.offset, 0);
@@ -980,7 +980,7 @@
/* force session shutdown */
ds->shutdown = 1;
- /* to be sure that the appctx wont miss shutdown */
+ /* to be sure that the appctx won't miss shutdown */
__ha_barrier_store();
/* wake appctx to perform the shutdown */
@@ -1127,7 +1127,7 @@
myist.len = len;
ads = NULL;
- /* try to push request into activ sess with free slot */
+ /* try to push request into active sess with free slot */
if (!LIST_ISEMPTY(&dss->free_sess)) {
ds = LIST_NEXT(&dss->free_sess, struct dns_session *, list);
@@ -1147,7 +1147,7 @@
}
if (!ads) {
- /* try to push request into idle, this one should have enought free space */
+ /* try to push request into idle, this one should have enough free space */
if (!LIST_ISEMPTY(&dss->idle_sess)) {
ds = LIST_NEXT(&dss->idle_sess, struct dns_session *, list);
@@ -1171,7 +1171,7 @@
}
}
- /* we didn't find a session avalaible with large enough room */
+ /* we didn't find a session available with large enough room */
if (!ads) {
/* allocate a new session */
ads = dns_session_new(dss);
@@ -1272,7 +1272,7 @@
dss->task_idle->context = dss;
dss->task_idle->expire = tick_add(now_ms, 5000);
- /* let start the task to free idle conns immediatly */
+ /* let start the task to free idle conns immediately */
task_queue(dss->task_idle);
LIST_INIT(&dss->free_sess);