get = _HA_ATOMIC_LOAD(&range->get);
do {
- /* barrier ot make sure get is loaded before put */
+ /* barrier to make sure get is loaded before put */
__ha_barrier_atomic_load();
put = _HA_ATOMIC_LOAD(&range->put_t);
if (unlikely(put == get))
#endif
/* find targets for selected groups. The function returns pointer to
- * the userlist struct ot NULL if name is NULL/empty or unresolvable.
+ * the userlist struct or NULL if name is NULL/empty or unresolvable.
*/
struct userlist *
/*
* This intends to be used when checking HTTP headers for some
* word=value directive. Return a pointer to the first character of value, if
- * the word was not found or if there wasn't any value assigned ot it return NULL
+ * the word was not found or if there wasn't any value assigned or it return NULL
*/
char *directive_value(const char *sample, int slen, const char *word, int wlen)
{
resp_encoding_bitmap |= VARY_ENCODING_IDENTITY;
/* Rewrite the bitmap part of the hash with the new bitmap that only
- * correponds the the response's encoding. */
+ * corresponds the the response's encoding. */
write_u32(secondary_key + offset, resp_encoding_bitmap);
}
unsigned int encoding_value;
unsigned int rejected_encoding;
- /* A user agent always accepts an unencoded value unless it explicitely
+ /* A user agent always accepts an unencoded value unless it explicitly
* refuses it through an "identity;q=0" accept-encoding value. */
hash.encoding_bitmap |= VARY_ENCODING_IDENTITY;
}
/* If a "*" was found in the accepted encodings (without a null weight),
- * all the encoding are accepted except the ones explicitely rejected. */
+ * all the encoding are accepted except the ones explicitly rejected. */
if (hash.encoding_bitmap & VARY_ENCODING_STAR) {
hash.encoding_bitmap = ~0;
}
- /* Clear explicitely rejected encodings from the bitmap */
+ /* Clear explicitly rejected encodings from the bitmap */
hash.encoding_bitmap &= encoding_bmp_bl;
/* As per RFC7231#5.3.4, "If no Accept-Encoding field is in the request,
break;
if (fdtab[fd].update_mask & tid_bit) {
/* Cheat a bit, as the state is global to all pollers
- * we don't need every thread ot take care of the
+ * we don't need every thread or take care of the
* update.
*/
_HA_ATOMIC_AND(&fdtab[fd].update_mask, ~all_threads_mask);
break;
if (fdtab[fd].update_mask & tid_bit) {
/* Cheat a bit, as the state is global to all pollers
- * we don't need every thread ot take care of the
+ * we don't need every thread or take care of the
* update.
*/
_HA_ATOMIC_AND(&fdtab[fd].update_mask, ~all_threads_mask);
}
__ha_barrier_store();
/* since we're alone at the end of the list and still locked(-2),
- * we know noone tried to add past us. Mark the end of list.
+ * we know no one tried to add past us. Mark the end of list.
*/
_GET_PREV(fd, off) = last;
_GET_NEXT(fd, off) = -1;
/* load the map. */
if (!sample_load_map(args, &conv, file, line, &err)) {
- /* error case: we cant use luaL_error because we must
+ /* error case: we can't use luaL_error because we must
* free the err variable.
*/
luaL_where(L, 1);
stream_shutdown(si_strm(si), SF_ERR_KILLED);
}
- /* If we cant write, wakeup the pending write signals. */
+ /* If we can't write, wakeup the pending write signals. */
if (channel_output_closed(si_ic(si)))
notification_wake(&appctx->ctx.hlua_cosocket.wake_on_write);
- /* If we cant read, wakeup the pending read signals. */
+ /* If we can't read, wakeup the pending read signals. */
if (channel_input_closed(si_oc(si)))
notification_wake(&appctx->ctx.hlua_cosocket.wake_on_read);
* - only the function_ref[0] set to -1 and all other positive
* This ensure a same reference is not used both in shared
* lua state and thread dedicated lua state. Note: is the case
- * reach, the shared state is prioritary, but the bug will be
+ * reach, the shared state is priority, but the bug will be
* complicated to found for the end user.
*/
errors = 0;
}
if ((fcn->function_ref[0] == -1) == (ret < 0)) {
- ha_alert("Lua function '%s' is referenced both ins shared Lua context (throught lua-load) "
- "and per-thread Lua context (throught lua-load-per-thread). these two context "
+ ha_alert("Lua function '%s' is referenced both ins shared Lua context (through lua-load) "
+ "and per-thread Lua context (through lua-load-per-thread). these two context "
"exclusive.\n", fcn->name);
errors++;
}
if (errors > 0)
return 0;
- /* after this point, this global wil no longer used, so set to
+ /* after this point, this global will no longer be used, so set to
* -1 in order to have probably a segfault if someone use it
*/
hlua_state_id = -1;
if (eb_is_empty(&hdrs_map.map))
return;
- /* No conversion fo the request headers */
+ /* No conversion for the request headers */
if (!(h1m->flags & H1_MF_RESP) && !(h1s->h1c->px->options2 & PR_O2_H1_ADJ_BUGSRV))
return;
- /* No conversion fo the response headers */
+ /* No conversion for the response headers */
if ((h1m->flags & H1_MF_RESP) && !(h1s->h1c->px->options2 & PR_O2_H1_ADJ_BUGCLI))
return;
static void quic_enable_listener(struct listener *l)
{
/* FIXME: The following statements are incorrect. This
- * is the responsability of the QUIC xprt to stop accepting new
+ * is the responsibility of the QUIC xprt to stop accepting new
* connections.
*/
if (fd_updt)
static void quic_disable_listener(struct listener *l)
{
/* FIXME: The following statements are incorrect. This
- * is the responsability of the QUIC xprt to start accepting new
+ * is the responsibility of the QUIC xprt to start accepting new
* connections again.
*/
if (fd_updt)
*/
- /* If noone is interested in analysing data, it's time to forward
+ /* If no one is interested in analysing data, it's time to forward
* everything. We configure the buffer to forward indefinitely.
* Note that we're checking CF_SHUTR_NOW as an indication of a possible
* recent call to channel_abort().
/* perform output updates to the response buffer */
- /* If noone is interested in analysing data, it's time to forward
+ /* If no one is interested in analysing data, it's time to forward
* everything. We configure the buffer to forward indefinitely.
* Note that we're checking CF_SHUTR_NOW as an indication of a possible
* recent call to channel_abort().