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.
* 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);
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;
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
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);
/* 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 */
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);
}
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);
}
}
- /* 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);
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);