CLEANUP: haterm: Fix typos in comments

Some minor typos in comments were fixed.
This commit is contained in:
Christopher Faulet 2026-04-23 09:30:45 +02:00
parent e8aa9a0ae0
commit 0fd0f4be44
2 changed files with 5 additions and 5 deletions

View File

@ -33,7 +33,7 @@ DECLARE_TYPED_POOL(pool_head_hstream, "hstream", struct hstream);
#define HS_ST_OPT_CHUNK_RES 0x0080 /* chunk-encoded response (?k=1) */
#define HS_ST_OPT_REQ_AFTER_RES 0x0100 /* drain the request payload after the response (?A=1) */
#define HS_ST_OPT_RANDOM_RES 0x0200 /* random response (?R=1) */
#define HS_ST_OPT_NO_CACHE 0x0400 /* non-cacheable resposne (?c=0) */
#define HS_ST_OPT_NO_CACHE 0x0400 /* non-cacheable response (?c=0) */
#define HS_ST_OPT_NO_SPLICING 0x0800 /* no splicing (?S=1) */
const char *HTTP_HELP =
@ -323,7 +323,7 @@ static int hstream_ff_snd(struct connection *conn, struct hstream *hs)
struct sedesc *sd = hs->sc->sedesc;
int ret = 0;
/* First try to resume FF*/
/* First try to resume FF */
if (se_have_ff_data(sd)) {
ret = CALL_MUX_WITH_RET(conn->mux, resume_fastfwd(hs->sc, 0));
if (ret > 0)
@ -370,7 +370,7 @@ static int hstream_ff_snd(struct connection *conn, struct hstream *hs)
done:
if (se_done_ff(sd) != 0 || !(sd->iobuf.flags & (IOBUF_FL_FF_BLOCKED|IOBUF_FL_FF_WANT_ROOM))) {
/* Something was forwarding or the consumer states it is not
* blocked anyore, don't reclaim more room */
* blocked anymore, don't reclaim more room */
}
if (se_have_ff_data(sd)) {
@ -1060,7 +1060,7 @@ static struct task *process_hstream(struct task *t, void *context, unsigned int
send_done:
if (hs->req_body && (hs->flags & HS_ST_OPT_REQ_AFTER_RES) && !hs->to_write) {
/* Response sending has just complete. The body will be drained upon
/* Response sending has just completed. The body will be drained upon
* next wakeup.
*/
TRACE_STATE("waking up task", HS_EV_HSTRM_IO_CB, hs);

View File

@ -23,7 +23,7 @@ static void haterm_usage(char *name)
" -C : dump the configuration and exit\n"
" -D : goes daemon\n"
" -b <keysize> : RSA key size in bits (ex: \"2048\", \"4096\"...)\n"
" -c <curves> : ECSDA curves (ex: \"P-256\", \"P-384\"...)\n"
" -c <curves> : ECDSA curves (ex: \"P-256\", \"P-384\"...)\n"
" -v : shows version\n"
" -d : enable the traces for all http protocols\n"
" -dS : disables splice() usage even when available\n"