CLEANUP: Fix typos in the cli subsystem

Fixes typos in the code comments of the cli subsystem.
This commit is contained in:
Joseph Herlant 2018-11-25 12:51:45 -08:00 committed by Willy Tarreau
parent 40650960fd
commit 008b3cefa1

View File

@ -548,7 +548,7 @@ static void cli_io_handler(struct appctx *appctx)
if (unlikely(si->state == SI_ST_DIS || si->state == SI_ST_CLO))
goto out;
/* Check if the input buffer is avalaible. */
/* Check if the input buffer is available. */
if (res->buf.size == 0) {
/* buf.size==0 means we failed to get a buffer and were
* already subscribed to a wait list to get a buffer.
@ -2092,7 +2092,7 @@ int pcli_wait_for_response(struct stream *s, struct channel *rep, int an_bit)
/* We must trim any excess data from the response buffer, because we
* may have blocked an invalid response from a server that we don't
* want to accidentely forward once we disable the analysers, nor do
* want to accidently forward once we disable the analysers, nor do
* we want those data to come along with next response. A typical
* example of such data would be from a buggy server responding to
* a HEAD with some data, or sending more than the advertised