CLEANUP: assorted typo fixes in the code and comments
This is 13n iteration of typo fixes
This commit is contained in:
parent
3e678607e2
commit
f38a01884a
@ -16,7 +16,7 @@ By defining individual definitions in file include/config.h, it is possible to
|
||||
switch individual pools on / off. If a particular pool is not used, memory is
|
||||
used in a 'normal' way instead, using malloc()/free() functions.
|
||||
|
||||
This is made only from the aspect of debuging the program, i.e. comparing the
|
||||
This is made only from the aspect of debugging the program, i.e. comparing the
|
||||
speed of operation using different methods of working with memory.
|
||||
|
||||
In general, it would be better to use memory pools, due to less fragmentation
|
||||
|
@ -32,7 +32,7 @@ int fix_validate_message(const struct ist msg);
|
||||
struct ist fix_tag_value(const struct ist msg, unsigned int tagid);
|
||||
|
||||
/*
|
||||
* Return the FIX version string (one of FIX_X_Y macros) correspoding to
|
||||
* Return the FIX version string (one of FIX_X_Y macros) corresponding to
|
||||
* <str> or IST_NULL if not found.
|
||||
*/
|
||||
static inline struct ist fix_version(const struct ist str)
|
||||
|
@ -64,7 +64,7 @@
|
||||
|
||||
#define TX_CON_WANT_TUN 0x00008000 /* Will be a tunnel (CONNECT or 101-Switching-Protocol) */
|
||||
|
||||
/* unsued 0x00010000 */
|
||||
/* unused 0x00010000 */
|
||||
|
||||
#define TX_USE_PX_CONN 0x00020000 /* Use "Proxy-Connection" instead of "Connection" */
|
||||
|
||||
|
@ -143,7 +143,7 @@
|
||||
#define HTX_FL_NONE 0x00000000
|
||||
#define HTX_FL_PARSING_ERROR 0x00000001 /* Set when a parsing error occurred */
|
||||
#define HTX_FL_PROCESSING_ERROR 0x00000002 /* Set when a processing error occurred */
|
||||
/* 0x00000004 unsused */
|
||||
/* 0x00000004 unused */
|
||||
#define HTX_FL_PROXY_RESP 0x00000008 /* Set when the response was generated by HAProxy */
|
||||
#define HTX_FL_EOI 0x00000010 /* Set when end-of-input is reached from the HTX point of view
|
||||
* (at worst, on the EOM block is missing)
|
||||
|
@ -78,7 +78,7 @@ int pat_idx_tree_pfx(struct pattern_expr *expr, struct pattern *pat, char **err)
|
||||
/*
|
||||
*
|
||||
* The following function deletes all patterns related to reference pattern
|
||||
* element <elt> in pattern refernce <ref>.
|
||||
* element <elt> in pattern reference <ref>.
|
||||
*
|
||||
*/
|
||||
void pat_delete_gen(struct pat_ref *ref, struct pat_ref_elt *elt);
|
||||
|
@ -1,4 +1,4 @@
|
||||
varnishtest "Verify logging of relative/aboslute URI path"
|
||||
varnishtest "Verify logging of relative/absolute URI path"
|
||||
feature ignore_unknown_macro
|
||||
|
||||
server s1 {
|
||||
|
@ -1,6 +1,6 @@
|
||||
#REGTEST_TYPE=bug
|
||||
varnishtest "Test for the bug #940"
|
||||
# Test that the SNI are correcly inserted with the same file multiple times.
|
||||
# Test that the SNI are correctly inserted with the same file multiple times.
|
||||
|
||||
#REQUIRE_VERSION=2.2
|
||||
#REQUIRE_OPTIONS=OPENSSL
|
||||
|
@ -77,7 +77,7 @@ typedef int(*http_header_normalizer)(struct ist value, char *buf, unsigned int *
|
||||
|
||||
struct vary_hashing_information {
|
||||
struct ist hdr_name; /* Header name */
|
||||
enum vary_header_bit value; /* Bit repesenting the header in a vary signature */
|
||||
enum vary_header_bit value; /* Bit representing the header in a vary signature */
|
||||
unsigned int hash_length; /* Size of the sub hash for this header's value */
|
||||
http_header_normalizer norm_fn; /* Normalization function */
|
||||
};
|
||||
@ -839,7 +839,7 @@ static time_t get_last_modified_time(struct htx *htx)
|
||||
|
||||
/*
|
||||
* Checks the vary header's value. The headers on which vary should be applied
|
||||
* must be explicitely supported in the vary_information array (see cache.c). If
|
||||
* must be explicitly supported in the vary_information array (see cache.c). If
|
||||
* any other header is mentioned, we won't store the response.
|
||||
* Returns 1 if Vary-based storage can work, 0 otherwise.
|
||||
*/
|
||||
@ -923,7 +923,7 @@ enum act_return http_action_store_cache(struct act_rule *rule, struct proxy *px,
|
||||
break;
|
||||
|
||||
default: /* Any unsafe method */
|
||||
/* Discard any corresponding entry in case of sucessful
|
||||
/* Discard any corresponding entry in case of successful
|
||||
* unsafe request (such as PUT, POST or DELETE). */
|
||||
shctx_lock(shctx);
|
||||
|
||||
@ -1650,7 +1650,7 @@ enum act_return http_action_req_cache_use(struct act_rule *rule, struct proxy *p
|
||||
http_check_request_for_cacheability(s, &s->req);
|
||||
|
||||
/* The request's hash has to be calculated for all requests, even POSTs
|
||||
* or PUTs for instance because RFC7234 specifies that a sucessful
|
||||
* or PUTs for instance because RFC7234 specifies that a successful
|
||||
* "unsafe" method on a stored resource must invalidate it
|
||||
* (see RFC7234#4.4). */
|
||||
if (!sha1_hosturi(s))
|
||||
|
@ -124,7 +124,7 @@ int fix_validate_message(const struct ist msg)
|
||||
ret = FIX_NEED_MORE_DATA;
|
||||
goto end;
|
||||
}
|
||||
/* empty tag or empty value are forbbiden */
|
||||
/* empty tag or empty value are forbidden */
|
||||
if (istptr(parser) == istptr(value) ||!istlen(value))
|
||||
goto end;
|
||||
|
||||
|
@ -1483,7 +1483,7 @@ struct ist *build_log_header(enum log_fmt format, int level, int facility,
|
||||
}
|
||||
else if (metadata[LOG_META_TAG].len) {
|
||||
/* Tag is present but no hostname, we should
|
||||
* consider we try to emmit a local log
|
||||
* consider we try to emit a local log
|
||||
* in legacy format (analog to RFC3164 but
|
||||
* with stripped hostname).
|
||||
*/
|
||||
|
@ -326,7 +326,7 @@ static inline size_t mqtt_uint2str(struct buffer *buf, uint32_t i)
|
||||
}
|
||||
|
||||
/* Extracts the value of a <fieldname_id> of type <type> from a given MQTT
|
||||
* message <msg>. IST_NULL is returned if an error occured while parsing or if
|
||||
* message <msg>. IST_NULL is returned if an error occurred while parsing or if
|
||||
* the field could not be found. If more data are required, the message with a
|
||||
* length set to 0 is returned. If the field is found, the response is returned
|
||||
* as a struct ist.
|
||||
@ -858,7 +858,7 @@ static int mqtt_parse_connect(struct ist parser, struct mqtt_pkt *mpkt)
|
||||
|
||||
/* parsing payload
|
||||
*
|
||||
* Content of payload is realted to flags parsed above and the field order is pre-defined:
|
||||
* Content of payload is related to flags parsed above and the field order is pre-defined:
|
||||
* Client Identifier, Will Topic, Will Message, User Name, Password
|
||||
*/
|
||||
/* read client identifier */
|
||||
|
@ -1147,7 +1147,7 @@ static void fcgi_strm_wake_one_stream(struct fcgi_strm *fstrm)
|
||||
if (fcgi_conn_read0_pending(fconn)) {
|
||||
if (fstrm->state == FCGI_SS_OPEN) {
|
||||
fstrm->state = FCGI_SS_HREM;
|
||||
TRACE_STATE("swtiching to HREM", FCGI_EV_STRM_WAKE|FCGI_EV_FSTRM_END, fconn->conn, fstrm);
|
||||
TRACE_STATE("switching to HREM", FCGI_EV_STRM_WAKE|FCGI_EV_FSTRM_END, fconn->conn, fstrm);
|
||||
}
|
||||
else if (fstrm->state == FCGI_SS_HLOC)
|
||||
fcgi_strm_close(fstrm);
|
||||
|
@ -55,13 +55,13 @@
|
||||
/* 0x00002000 - 0x00008000 unused */
|
||||
|
||||
#define H1C_F_WAIT_OPPOSITE 0x00010000 /* Don't read more data for now, waiting sync with opposite side */
|
||||
#define H1C_F_WANT_SPLICE 0x00020000 /* Don't read into a bufffer because we want to use or we are using splicing */
|
||||
#define H1C_F_WANT_SPLICE 0x00020000 /* Don't read into a buffer because we want to use or we are using splicing */
|
||||
#define H1C_F_ERR_PENDING 0x00040000 /* Send an error and close the connection ASAP (implies H1C_F_ST_ERROR) */
|
||||
#define H1C_F_WAIT_NEXT_REQ 0x00080000 /* waiting for the next request to start, use keep-alive timeout */
|
||||
#define H1C_F_UPG_H2C 0x00100000 /* set if an upgrade to h2 should be done */
|
||||
#define H1C_F_CO_MSG_MORE 0x00200000 /* set if CO_SFL_MSG_MORE must be set when calling xprt->snd_buf() */
|
||||
#define H1C_F_CO_STREAMER 0x00400000 /* set if CO_SFL_STREAMER must be set when calling xprt->snd_buf() */
|
||||
/* 0x00800000 - 0x40000000 unsued*/
|
||||
/* 0x00800000 - 0x40000000 unused */
|
||||
|
||||
#define H1C_F_IS_BACK 0x80000000 /* Set on outgoing connection */
|
||||
|
||||
@ -69,7 +69,7 @@
|
||||
* H1 Stream flags (32 bits)
|
||||
*/
|
||||
#define H1S_F_NONE 0x00000000
|
||||
/* 0x00000001..0x00000004 unsued */
|
||||
/* 0x00000001..0x00000004 unused */
|
||||
#define H1S_F_REOS 0x00000008 /* End of input stream seen even if not delivered yet */
|
||||
#define H1S_F_WANT_KAL 0x00000010
|
||||
#define H1S_F_WANT_TUN 0x00000020
|
||||
|
@ -3273,7 +3273,7 @@ static int sample_conv_fix_value_check(struct arg *args, struct sample_conv *con
|
||||
* Checks that a buffer contains a valid FIX message
|
||||
*
|
||||
* Return 1 if the check could be run, 0 if not.
|
||||
* The result of the analyse itsef is stored in <smp> as a boolean
|
||||
* The result of the analyse itself is stored in <smp> as a boolean
|
||||
*/
|
||||
static int sample_conv_fix_is_valid(const struct arg *arg_p, struct sample *smp, void *private)
|
||||
{
|
||||
@ -3334,7 +3334,7 @@ static int sample_conv_mqtt_field_value(const struct arg *arg_p, struct sample *
|
||||
* this function checks the "mqtt_field_value" converter configuration.
|
||||
* It expects a known packet type name or ID and a field name, in this order
|
||||
*
|
||||
* Args[0] will be turned into a MQTT_CPT_* value for direct maching when parsing
|
||||
* Args[0] will be turned into a MQTT_CPT_* value for direct matching when parsing
|
||||
* a packet.
|
||||
*/
|
||||
static int sample_conv_mqtt_field_value_check(struct arg *args, struct sample_conv *conv,
|
||||
|
@ -2952,7 +2952,7 @@ static void srv_update_state(struct server *srv, int version, char **params)
|
||||
srv->svc_port = port;
|
||||
|
||||
#ifdef USE_OPENSSL
|
||||
/* configure ssl if connection has been initated at startup */
|
||||
/* configure ssl if connection has been initiated at startup */
|
||||
if (srv->ssl_ctx.ctx != NULL)
|
||||
ssl_sock_set_srv(srv, use_ssl);
|
||||
#endif
|
||||
|
@ -3947,7 +3947,7 @@ static int stats_dump_info_to_buffer(struct stream_interface *si)
|
||||
* It returns 0 as long as it does not complete, non-zero upon completion.
|
||||
* No state is used.
|
||||
*
|
||||
* Integer values bouned to the range [-(2**53)+1, (2**53)-1] as
|
||||
* Integer values bounded to the range [-(2**53)+1, (2**53)-1] as
|
||||
* per the recommendation for interoperable integers in section 6 of RFC 7159.
|
||||
*/
|
||||
static void stats_dump_json_schema(struct buffer *out)
|
||||
|
Loading…
Reference in New Issue
Block a user