Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/pkg.m4
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fi[]dnl
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
#
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
# only at the first occurence in configure.ac, so if the first place
# only at the first occurrence in configure.ac, so if the first place
# it's called might be skipped (such as if it is within an "if", you
# have to call PKG_CHECK_EXISTS manually
# --------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions doc/admin-guide/files/ip_allow.config.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ range with the lower and upper values equal to that IP address).
The value of ``method`` is a string which must consist of either HTTP method names separated by the
character '|' or the keyword literal ``ALL``. This keyword may omitted in which case it is treated
as if it were ``method=ALL``. Methods can also be specified by having multiple instances of the
``method`` keyword, each specifiying a single method. E.g., ``method=GET|HEAD`` is the same as
``method`` keyword, each specifying a single method. E.g., ``method=GET|HEAD`` is the same as
``method=GET method=HEAD``. The method names are not validated which means non-standard method names
can be specified.

Expand Down Expand Up @@ -104,7 +104,7 @@ If the entire subnet were to be denied, that would be::

src_ip=123.45.6.0/24 action=ip_deny

The following example allows to any upstream servers::
The following example allows one to any upstream servers::

dest_ip=0.0.0.0-255.255.255.255 action=ip_allow

Expand Down
6 changes: 3 additions & 3 deletions doc/admin-guide/files/parent.config.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ The following list shows the possible actions and their allowed values.
- ``simple_retry`` - If the parent origin server returns a 404 response on a request
a new parent is selected and the request is retried. The number of retries is controlled
by ``max_simple_retries`` which is set to 1 by default.
- ``unavailable_server_retry`` - If the parent returns a 503 response or if the reponse matches
- ``unavailable_server_retry`` - If the parent returns a 503 response or if the response matches
a list of http 5xx responses defined in ``unavailable_server_retry_responses``, the currently selected
parent is marked down and a new parent is selected to retry the request. The number of
retries is controlled by ``max_unavailable_server_retries`` which is set to 1 by default.
Expand All @@ -228,15 +228,15 @@ The following list shows the possible actions and their allowed values.

``max_simple_retries``
By default the value for ``max_simple_retries`` is 1. It may be set to any value in the range 1 to 5.
If ``parent_retry`` is set to ``simple_retry`` or ``both`` a 404 reponse
If ``parent_retry`` is set to ``simple_retry`` or ``both`` a 404 response
from a parent origin server will cause the request to be retried using a new parent at most 1 to 5
times as configured by ``max_simple_retries``.

.. _parent-config-format-max-unavailable-server-retries:

``max_unavailable_server_retries``
By default the value for ``max_unavailable_server_retries`` is 1. It may be set to any value in the range 1 to 5.
If ``parent_retry`` is set to ``unavailable_server_retries`` or ``both`` a 503 reponse
If ``parent_retry`` is set to ``unavailable_server_retries`` or ``both`` a 503 response
by default or any http 5xx response listed in the list ``unavailable_server_retry_responses`` from a parent origin server will
cause the request to be retried using a new parent after first marking the current parent down. The request
will be retried at most 1 to 5 times as configured by ``max_unavailable_server_retries``.
Expand Down
18 changes: 9 additions & 9 deletions doc/admin-guide/files/records.config.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ mptcp
===== ======================================================================
Value Description
===== ======================================================================
``0`` |TS| will buffer the request until the post body has been recieved and
``0`` |TS| will buffer the request until the post body has been received and
then send the request to the origin server.
``1`` Immediately return a ``100 Continue`` from |TS| without waiting for
the post body.
Expand Down Expand Up @@ -1724,7 +1724,7 @@ Proxy User Variables
connection=full Full user agent connection :ref:`protocol tags <protocol_tags>`
================== ===============================================================

Each paramater in the list must be separated by ``|`` or ``:``. For example, ``for|by=uuid|proto`` is
Each parameter in the list must be separated by ``|`` or ``:``. For example, ``for|by=uuid|proto`` is
a valid value for this variable. Note that the ``connection`` parameter is a non-standard extension to
RFC 7239. Also note that, while |TS| allows multiple ``by`` parameters for the same proxy, this
is prohibited by RFC 7239. Currently, for the ``host`` parameter to provide the original host from the
Expand Down Expand Up @@ -2478,7 +2478,7 @@ DNS

.. ts:cv:: CONFIG proxy.config.dns.resolv_conf STRING /etc/resolv.conf

Allows to specify which ``resolv.conf`` file to use for finding resolvers. While the format of this file must be the same as the
Allows one to specify which ``resolv.conf`` file to use for finding resolvers. While the format of this file must be the same as the
standard ``resolv.conf`` file, this option allows an administrator to manage the set of resolvers in an external configuration file,
without affecting how the rest of the operating system uses DNS.

Expand All @@ -2496,7 +2496,7 @@ DNS
:reloadable:
:overridable:

Indicates whether to use SRV records for orgin server lookup.
Indicates whether to use SRV records for origin server lookup.

.. ts:cv:: CONFIG proxy.config.dns.dedicated_thread INT 0

Expand Down Expand Up @@ -2729,7 +2729,7 @@ HostDB
Set the frequency (in seconds) to sync hostdb to disk.

Note: hostdb is syncd to disk on a per-partition basis (of which there are 64).
This means that the minumum time to sync all data to disk is :ts:cv:`proxy.config.cache.hostdb.sync_frequency` * 64
This means that the minimum time to sync all data to disk is :ts:cv:`proxy.config.cache.hostdb.sync_frequency` * 64

Logging Configuration
=====================
Expand Down Expand Up @@ -3050,15 +3050,15 @@ Diagnostic Logging Configuration

.. ts:cv:: CONFIG proxy.config.diags.debug.tags STRING http|dns

Each |TS| `diag` and `debug` level message is annotated with a subsytem tag. This configuration
Each |TS| `diag` and `debug` level message is annotated with a subsystem tag. This configuration
contains an anchored regular expression that filters the messages based on the tag. The
expressions are prefix matched which creates an implicit ``.*`` at the end. Therefore the default
value ``http|dns`` will match tags such as ``http``, ``http_hdrs``, ``dns``, and ``dns_recv``.

Some commonly used debug tags are:

============ =====================================================
Tag Subsytem usage
Tag Subsystem usage
============ =====================================================
dns DNS query resolution
http_hdrs Logs the headers for HTTP requests and responses
Expand Down Expand Up @@ -3221,7 +3221,7 @@ SSL Termination
.. ts:cv:: CONFIG proxy.config.ssl.client.groups_list STRING <See notes under proxy.config.ssl.server.groups_list.>

Configures the list of supported groups provided by OpenSSL which
|TS| will use for the "key_share" and "supported groups" extention
|TS| will use for the "key_share" and "supported groups" extension
of TLSv1.3 connections. The value is a colon separated list of
group NIDs or names, for example "P-521:P-384:P-256". For
instructions, see "Groups" section of `TLS1.3 - OpenSSLWiki <https://wiki.openssl.org/index.php/TLS1.3#Groups>`_.
Expand Down Expand Up @@ -3364,7 +3364,7 @@ SSL Termination
``0`` Disables the session cache entirely.
``1`` Enables the session cache using OpenSSL's implementation.
``2`` Default. Enables the session cache using |TS|'s implementation. This
implentation should perform much better than the OpenSSL
implementation should perform much better than the OpenSSL
implementation.
===== ======================================================================

Expand Down
2 changes: 1 addition & 1 deletion doc/admin-guide/files/remap.config.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ Acl Filters

Acl filters can be created to control access of specific remap lines. The markup
is very similar to that of :file:`ip_allow.config`, with slight changes to
accomodate remap markup
accommodate remap markup

Examples
--------
Expand Down
2 changes: 1 addition & 1 deletion doc/admin-guide/files/storage.config.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ which will effectively clear most of the cache. This can be problem when drives
reboot causes the path names to change.

The :arg:`id` option can be used to create a fixed string that an administrator can use to keep the
assignment table consistent by maintaing the mapping from physical device to base string even in the presence of hardware changes and failures.
assignment table consistent by maintaining the mapping from physical device to base string even in the presence of hardware changes and failures.

Examples
========
Expand Down
2 changes: 1 addition & 1 deletion doc/admin-guide/plugins/header_rewrite.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ The data that can be checked is ::
%{INBOUND:REMOTE-PORT} The client port for the connection.
%{INBOUND:TLS} The TLS protocol if the connection is over TLS, otherwise the empty string.
%{INBOUND:H2} The string "h2" if the connection is HTTP/2, otherwise the empty string.
%{INBOUND:IPV4} The string "ipv4" if the connection is IPv4, otherwise the emtpy string.
%{INBOUND:IPV4} The string "ipv4" if the connection is IPv4, otherwise the empty string.
%{INBOUND:IPV6} The string "ipv6" if the connection is IPv6, otherwise the empty string.
%{INBOUND:IP-FAMILY} The IP family, either "ipv4" or "ipv6".
%{INBOUND:STACK} The full protocol stack separated by ','.
Expand Down
2 changes: 1 addition & 1 deletion doc/appendices/command-line/traffic_ctl.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ traffic_ctl host
.. program:: traffic_ctl host
.. option:: status HOSTNAME [HOSTNAME ...]

Get the current status of the hosts used in parent.config as a next hop in a multi-tiered cache heirarchy. The value 0 or 1 is returned indicating that the host is marked as down '0' or marked as up '1'. If a host is marked as down, it will not be used as the next hop parent, another host marked as up will be chosen.
Get the current status of the hosts used in parent.config as a next hop in a multi-tiered cache hierarchy. The value 0 or 1 is returned indicating that the host is marked as down '0' or marked as up '1'. If a host is marked as down, it will not be used as the next hop parent, another host marked as up will be chosen.

.. program:: traffic_ctl host
.. option:: down --time seconds --reason 'manual|active|local' HOSTNAME [HOSTNAME ...]
Expand Down
2 changes: 1 addition & 1 deletion doc/developer-guide/api/functions/TSCacheRemove.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ the cache calls :arg:`contp` back with the event
In both of these callbacks, the user (:arg:`contp`) does not have to do
anything. The user does not get any vconnection from the cache, since
no data needs to be transferred. When the cache calls :arg:`contp` back with
:data:`TS_EVENT_CACHE_REMOVE`, the remove has already been commited.
:data:`TS_EVENT_CACHE_REMOVE`, the remove has already been committed.
2 changes: 1 addition & 1 deletion doc/developer-guide/api/functions/TSContSchedule.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Description
===========

Schedules :arg:`contp` to run :arg:`delay` milliseconds in the future. This is approximate. The delay
will be at least :arg:`delay` but possibly more. Resultions finer than roughly 5 milliseconds will
will be at least :arg:`delay` but possibly more. Resolutions finer than roughly 5 milliseconds will
not be effective. :arg:`contp` is required to have a mutex, which is provided to
:func:`TSContCreate`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ virtual connection.

The combination of :arg:`tag` and :arg:`id` is intended to enable correlation
in log post processing. The :arg:`tag` identifies the connection as related
to the plugin and the :arg:`id` can be used in conjuction with plugin
to the plugin and the :arg:`id` can be used in conjunction with plugin
generated logs to correlate the log records.

Notes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Description

Some of the values that are set in :file:`records.config` can be changed for a
specific transaction. It is important to note that these functions change the
configuration values stored for the transation, which is not quite the same as
configuration values stored for the transaction, which is not quite the same as
changing the actual operating values of the transaction. The critical effect is
the value must be changed before it is used by the transaction - after that,
changes will not have any effect.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ Description
Note that both string arguments must be allocated with :c:func:`TSmalloc` or
:c:func:`TSstrdup`. The :arg:`mimetype` is optional, and if not provided it
defaults to :literal:`text/html`. Sending an empty string would prevent setting
a content type header (but that is not adviced).
a content type header (but that is not advised).
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ is successful.

.. macro:: TS_MILESTONE_LAST_ENTRY

A psuedo index which is set to be one more than the last valid index. This is useful for looping over the data.
A pseudo index which is set to be one more than the last valid index. This is useful for looping over the data.


* The server connect times predate the transmission of the :literal:`SYN`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The response from the plugin is cached subject to standard and configured HTTP
caching rules. Should the plugin wish the response not be cached, the plugin
must use appropriate HTTP response headers to prevent caching. The primary
purpose of :func:`TSHttpTxnServerIntercept` is allow plugins to provide gateways
to other protocols or to allow to plugin to its own transport for the next hop
to other protocols or to allow one to plugin to its own transport for the next hop
to the server. :func:`TSHttpTxnServerIntercept` overrides parent cache
configuration.

Expand Down
2 changes: 1 addition & 1 deletion doc/developer-guide/api/functions/TSIOBufferReader.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ has two very important consequences --
* Conversely keeping a reader around unused will pin the buffer data in memory. This can be useful or harmful.

A buffer has a fixed amount of possible readers (currently 5) which is determined at compile
time. Reader allocation is fast and cheap until this maxium is reached at which point it fails.
time. Reader allocation is fast and cheap until this maximum is reached at which point it fails.

:func:`TSIOBufferReaderAlloc` allocates a reader for the IO buffer :arg:`bufp`. This should only be
called on a newly allocated buffer. If not the location of the reader in the buffer will be
Expand Down
4 changes: 2 additions & 2 deletions doc/developer-guide/api/functions/TSSslContext.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ Description
===========

:func:`TSSslContextFindByName` searches for a SSL server context
created from :file:`ssl_multicert.config`, matching against the
created from :file:`ssl_multicert.config`, matchingg against the
server :arg:`name`.

:func:`TSSslContextFindByAddr` searches for a SSL server context
created from :file:`ssl_multicert.config` matchin against the server
created from :file:`ssl_multicert.config` matching against the server
:arg:`address`.


Expand Down
2 changes: 1 addition & 1 deletion doc/developer-guide/api/functions/TSSslSession.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The functions also work with the :type:`TSSslSession` object which can be cast t

These functions perform the appropriate locking on the session cache to avoid errors.

The :func:`TSSslSessionGet` and :func:`TSSslSessionGetBuffer` functions retreive the :type:`TSSslSession` object that is identifed by the
The :func:`TSSslSessionGet` and :func:`TSSslSessionGetBuffer` functions retrieve the :type:`TSSslSession` object that is identifed by the
:type:`TSSslSessionID` object. If there is no matching sesion object, :func:`TSSslSessionGet` returns NULL and :func:`TSSslSessionGetBuffer`
returns 0.

Expand Down
4 changes: 2 additions & 2 deletions doc/developer-guide/api/functions/TSStat.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ Description

A plugin statistic is created by :func:`TSStatCreate`. The :arg:`name` must be globally unique and
should follow the standard dotted tag form. To avoid collisions and for easy of use the first tag
should be the plugin name or something easily derived from it. Currently only integers are suppored
should be the plugin name or something easily derived from it. Currently only integers are supported
therefore :arg:`type` must be :macro:`TS_RECORDDATATYPE_INT`. The return value is the index of the
statistic. In general thsi should work but if it doesn't it will :code:`assert`. In particular,
statistic. In general this should work but if it doesn't it will :code:`assert`. In particular,
creating the same statistic twice will fail in this way, which can happen if statistics are created
as part of or based on configuration files and |TS| is reloaded.

Expand Down
2 changes: 1 addition & 1 deletion doc/developer-guide/api/functions/TSVConnReenable.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Description
===========

Reenable the SSL connection :arg:`svc`. If a plugin hook is called, ATS
processing on that connnection will not resume until this is invoked for that
processing on that connection will not resume until this is invoked for that
connection.

If the server is running OpenSSL 1.0.2, the plugin writer can pause SSL handshake
Expand Down
2 changes: 1 addition & 1 deletion doc/developer-guide/api/functions/TSfwrite.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ The behavior is undefined if length is greater than SSIZE_MAX.
Return Value
============

Returns the number of bytes actually written, or -1 if an error occured.
Returns the number of bytes actually written, or -1 if an error occurred.
4 changes: 2 additions & 2 deletions include/tscpp/util/TextView.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,15 @@ class TextView : public std::string_view
self_type prefix(size_t n) const;
/// Convenience overload to avoid ambiguity for literal numbers.
self_type prefix(int n) const;
/** Get the prefix delimited by the first occurence of the character @a c.
/** Get the prefix delimited by the first occurrence of the character @a c.

If @a c is not found the entire view is returned.
The delimiter character is not included in the returned view.

@return A view of the prefix.
*/
self_type prefix(char c) const;
/** Get the prefix delimited by the first occurence of a character in @a delimiters.
/** Get the prefix delimited by the first occurrence of a character in @a delimiters.

If no such character is found the entire view is returned.
The delimiter character is not included in the returned view.
Expand Down
2 changes: 1 addition & 1 deletion iocore/cache/CacheHosting.cc
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ ConfigVolumes::BuildListFromString(char *config_file_path, char *file_buf)
// added by YTS Team, yamsat for bug id 59632
total += size;
if (size > 100 || total > 100) {
err = "Total volume size added upto more than 100 percent, No volumes created";
err = "Total volume size added up to more than 100 percent, No volumes created";
break;
}
// ends here
Expand Down
2 changes: 1 addition & 1 deletion iocore/cache/CacheVol.cc
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ CacheVC::scanOpenWrite(int /* event ATS_UNUSED */, Event * /* e ATS_UNUSED */)
// get volume lock
if (writer_lock_retry > SCAN_WRITER_LOCK_MAX_RETRY) {
int r = _action.continuation->handleEvent(CACHE_EVENT_SCAN_OPERATION_BLOCKED, nullptr);
Debug("cache_scan", "still havent got the writer lock, asking user..");
Debug("cache_scan", "still haven't got the writer lock, asking user..");
switch (r) {
case CACHE_SCAN_RESULT_RETRY:
writer_lock_retry = 0;
Expand Down
2 changes: 1 addition & 1 deletion iocore/dns/SplitDNS.cc
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ SplitDNSRecord::ProcessDNSHosts(char *val)
if (tmp - current > (MAXDNAME - 1)) {
return "DNS server name (ip) is too long";
} else if (tmp - current == 0) {
return "server string is emtpy";
return "server string is empty";
}
*tmp = 0;
}
Expand Down
2 changes: 1 addition & 1 deletion iocore/eventsystem/IOBuffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ MIOBuffer::puts(char *s, int64_t len)
}
if (!*pb || *pb == '\n') {
int64_t n = (int64_t)(pb - s);
memcpy(end(), s, n + 1); // Upto and including '\n'
memcpy(end(), s, n + 1); // Up to and including '\n'
end()[n + 1] = 0;
fill(n + 1);
return n + 1;
Expand Down
2 changes: 1 addition & 1 deletion iocore/eventsystem/I_IOBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ class IOBufferReader
/**
Perform a memchr() across the list of IOBufferBlocks. Returns the
offset from the current start point of the reader to the first
occurence of character 'c' in the buffer.
occurrence of character 'c' in the buffer.

@param c character to look for.
@param len number of characters to check. If len exceeds the number
Expand Down
2 changes: 1 addition & 1 deletion iocore/net/OCSPStapling.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ stapling_get_issuer(SSL_CTX *ssl_ctx, X509 *x)

#ifdef SSL_CTX_select_current_cert
if (!SSL_CTX_select_current_cert(ssl_ctx, x)) {
Warning("OCSP: could not select current certifcate chain %p", x);
Warning("OCSP: could not select current certificate chain %p", x);
}
#endif

Expand Down
Loading