This is an automated email from the ASF dual-hosted git repository. rrm pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push: new f53c80dc29 Fixes spelling across the tree (#9363) f53c80dc29 is described below commit f53c80dc29a70f5d59184ca67d0d2fd27b4707ff Author: Randall Meyer <r...@apache.org> AuthorDate: Thu Feb 2 17:46:17 2023 -0800 Fixes spelling across the tree (#9363) --- configure.ac | 2 +- doc/admin-guide/files/records.yaml.en.rst | 6 +++--- doc/admin-guide/plugins/header_rewrite.en.rst | 2 +- doc/conf.py | 2 +- doc/developer-guide/api/functions/TSSslSecret.en.rst | 2 +- doc/developer-guide/core-architecture/hostdb.en.rst | 2 +- doc/developer-guide/jsonrpc/jsonrpc-api.en.rst | 4 ++-- .../plugins/example-plugins/denylist/setting-a-global-hook.en.rst | 2 +- doc/locale/ja/LC_MESSAGES/admin-guide/plugins/ts_lua.en.po | 4 ++-- .../ja/LC_MESSAGES/developer-guide/architecture/architecture.en.po | 2 +- .../ja/LC_MESSAGES/developer-guide/documentation/conventions.en.po | 2 +- .../plugins/example-plugins/blacklist/setting-a-global-hook.en.po | 2 +- include/records/I_RecHttp.h | 2 +- include/shared/rpc/RPCRequests.h | 4 ++-- include/ts/ts.h | 2 +- include/tscore/Diags.h | 2 +- include/tscore/Regex.h | 4 ++-- include/tscpp/util/TsSharedMutex.h | 2 +- iocore/eventsystem/I_Continuation.h | 2 +- iocore/eventsystem/I_EThread.h | 2 +- iocore/hostdb/HostDB.cc | 2 +- iocore/hostdb/HostFile.cc | 2 +- iocore/hostdb/I_HostDBProcessor.h | 4 ++-- iocore/net/TLSEarlyDataSupport.cc | 2 +- mgmt/rpc/handlers/common/RecordsUtils.h | 2 +- mgmt/rpc/handlers/config/Configuration.cc | 2 +- mgmt/rpc/handlers/records/Records.cc | 2 +- mgmt/rpc/jsonrpc/unit_tests/test_basic_protocol.cc | 6 +++--- mgmt/rpc/server/CommBase.cc | 2 +- mgmt/rpc/server/IPCSocketServer.cc | 2 +- mgmt/rpc/server/unit_tests/test_rpcserver.cc | 2 +- plugins/experimental/fastcgi/src/Readme | 2 +- plugins/experimental/otel_tracer/tracer_common.h | 2 +- plugins/experimental/parent_select/consistenthash.cc | 2 +- plugins/experimental/rate_limit/ip_reputation.h | 2 +- plugins/experimental/rate_limit/sni_limiter.h | 2 +- plugins/experimental/wasm/wasm_main.cc | 2 +- proxy/ControlMatcher.h | 2 +- proxy/IPAllow.h | 2 +- proxy/InkAPIInternal.h | 2 +- proxy/hdrs/VersionConverter.cc | 2 +- proxy/http/HttpSM.cc | 4 ++-- proxy/http/HttpSessionManager.h | 2 +- proxy/http/stats.memo | 2 +- proxy/http2/Http2ConnectionState.cc | 4 ++-- proxy/http2/Http2ConnectionState.h | 4 ++-- proxy/http3/Http3App.cc | 2 +- tests/README.md | 2 +- tests/gold_tests/jsonrpc/jsonrpc_api_schema.test.py | 2 +- tests/gold_tests/pluginTest/TSVConnFd/TSVConnFd.cc | 4 ++-- tests/gold_tests/proxy_protocol/proxy_protocol_server.py | 6 +++--- tools/http_load/timers.h | 2 +- tools/jtest/jtest.cc | 6 +++--- 53 files changed, 70 insertions(+), 70 deletions(-) diff --git a/configure.ac b/configure.ac index d6409aa6a8..7aa9168bec 100644 --- a/configure.ac +++ b/configure.ac @@ -1250,7 +1250,7 @@ TS_CHECK_CRYPTO # Check for OpenSSL Version TS_CHECK_CRYPTO_VERSION -# Check for OpenSSL Version 3 and add compatiblity define if needed +# Check for OpenSSL Version 3 and add compatibility define if needed TS_CHECK_OPENSSL3 AM_CONDITIONAL([OPENSSL_IS_OPENSSL3], [test -n "$openssl_is_openssl3"]) diff --git a/doc/admin-guide/files/records.yaml.en.rst b/doc/admin-guide/files/records.yaml.en.rst index bdc848099a..578251dd8a 100644 --- a/doc/admin-guide/files/records.yaml.en.rst +++ b/doc/admin-guide/files/records.yaml.en.rst @@ -550,7 +550,7 @@ Network ``default_inactivity_timeout`` is a connection level concept. This is not necessarily a problem, but it does mean that care must be taken when applying the override to consider that all transactions in the connection - which has this timeout overriden will be impacted by the override. For + which has this timeout overridden will be impacted by the override. For instance, if the default inactivity timeout is being overridden via a :ref:`admin-plugins-conf-remap` rule in :file:`remap.config`, then all transactions for that connection will be impacted by the override, not just @@ -4090,7 +4090,7 @@ Client-Related Configuration ================================ ====================================================================== ``""`` No ALPN extension is sent by |TS| in origin-side TLS handshakes. |TS| will assume an HTTP/1.1 connection in this case. - ``"http/1.1"`` Only HTTP/1.1 is advertized by |TS|. Thus, the origin will + ``"http/1.1"`` Only HTTP/1.1 is advertised by |TS|. Thus, the origin will either negotiate HTTP/1.1, or it will fail the handshake if that is not supported by the origin. ``"http/1.1,http/1.0"`` Both HTTP/1.1 and HTTP/1.0 are supported by |TS|, but HTTP/1.1 @@ -4099,7 +4099,7 @@ Client-Related Configuration origin supports HTTP/2, it will be used for the connection. If not, it will fall back to HTTP/1.1 or, if that is not supported, HTTP/1.0. (HTTP/2 to origin is currently not supported by |TS|.) - ``"h2"`` |TS| only advertizes HTTP/2 support. Thus, the origin will + ``"h2"`` |TS| only advertises HTTP/2 support. Thus, the origin will either negotiate HTTP/2 or fail the handshake. (HTTP/2 to origin is currently not supported by |TS|.) ================================ ====================================================================== diff --git a/doc/admin-guide/plugins/header_rewrite.en.rst b/doc/admin-guide/plugins/header_rewrite.en.rst index f7c21ae1bf..c84a44ec1d 100644 --- a/doc/admin-guide/plugins/header_rewrite.en.rst +++ b/doc/admin-guide/plugins/header_rewrite.en.rst @@ -838,7 +838,7 @@ The available controllers are: ================ ==================================================================== Controller Description ================ ==================================================================== -LOGGING Turns off logging for the transction (default: ``on``) +LOGGING Turns off logging for the transaction (default: ``on``) INTERCEPT_RETRY Allow intercepts to be retried (default: ``off``) RESP_CACHEABLE Force the response to be cacheable (default: ``off``) REQ_CACHEABLE Force the request to be cacheable (default: ``off``) diff --git a/doc/conf.py b/doc/conf.py index 89f417af1f..bfcc53c406 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -486,7 +486,7 @@ epub_copyright = u'2013, d...@trafficserver.apache.org' # The format is a list of tuples containing the path and title. #epub_pre_files = [] -# HTML files shat should be inserted after the pages created by sphinx. +# HTML files should be inserted after the pages created by sphinx. # The format is a list of tuples containing the path and title. #epub_post_files = [] diff --git a/doc/developer-guide/api/functions/TSSslSecret.en.rst b/doc/developer-guide/api/functions/TSSslSecret.en.rst index 9f81d4f566..73a60945f8 100644 --- a/doc/developer-guide/api/functions/TSSslSecret.en.rst +++ b/doc/developer-guide/api/functions/TSSslSecret.en.rst @@ -55,7 +55,7 @@ Description =========== :func:`TSSslSecretGet` fetches the named secret from the current secret map. If there is no secret with the -given name, the returned pointer will be null, and the :arg:`secret_data_length` output paramter will be set to zero. If +given name, the returned pointer will be null, and the :arg:`secret_data_length` output parameter will be set to zero. If the returned pointer is not null, it points to a buffer containing the secret data. The :arg:`secret_data_length` output parameter will be set to the length of the secret data. The buffer containing the data must be freed by calling :func:`TSfree`. diff --git a/doc/developer-guide/core-architecture/hostdb.en.rst b/doc/developer-guide/core-architecture/hostdb.en.rst index 33eef3c253..f6c036a835 100644 --- a/doc/developer-guide/core-architecture/hostdb.en.rst +++ b/doc/developer-guide/core-architecture/hostdb.en.rst @@ -174,7 +174,7 @@ This version has several major architectural changes from the previous version. provides a noticeable simplification of the code. * Single and multiple address results are treated identically - a singleton is simply a multiple - of size 1. This yeilds a major simplification of the implementation. + of size 1. This yields a major simplification of the implementation. * Connections are throttled to dead upstreams, allowing only a single connection attempt per fail window timing until a connection succeeds. diff --git a/doc/developer-guide/jsonrpc/jsonrpc-api.en.rst b/doc/developer-guide/jsonrpc/jsonrpc-api.en.rst index 75179cfb89..b8c54f03e0 100644 --- a/doc/developer-guide/jsonrpc/jsonrpc-api.en.rst +++ b/doc/developer-guide/jsonrpc/jsonrpc-api.en.rst @@ -323,11 +323,11 @@ The following errors could be generated when requesting record from the server. .. enumerator:: RECORD_WRITE_ERROR = 2006 - Generic error while writting the record. ie: RecResetStatRecord() returns REC_ERR_OKAY + Generic error while writing the record. ie: RecResetStatRecord() returns REC_ERR_OKAY .. enumerator:: REQUESTED_TYPE_MISMATCH = 2007 - The requested record's type does not match againts the passed type list. + The requested record's type does not match against the passed type list. .. enumerator:: INVALID_INCOMING_DATA = 2008 diff --git a/doc/developer-guide/plugins/example-plugins/denylist/setting-a-global-hook.en.rst b/doc/developer-guide/plugins/example-plugins/denylist/setting-a-global-hook.en.rst index d095dcd2b1..66f51d2002 100644 --- a/doc/developer-guide/plugins/example-plugins/denylist/setting-a-global-hook.en.rst +++ b/doc/developer-guide/plugins/example-plugins/denylist/setting-a-global-hook.en.rst @@ -33,6 +33,6 @@ Above, ``TS_HTTP_OS_DNS_HOOK`` is the ID for the origin server DNS lookup hook and ``contp`` is the parent continuation created earlier. This means that the Denylist plugin is called at every origin server -DNS lookup. When it is called, the handler functio ``denylist_plugin`` +DNS lookup. When it is called, the handler function ``denylist_plugin`` receives ``TS_EVENT_HTTP_OS_DNS`` and calls ``handle_dns`` to see if the request is forbidden. diff --git a/doc/locale/ja/LC_MESSAGES/admin-guide/plugins/ts_lua.en.po b/doc/locale/ja/LC_MESSAGES/admin-guide/plugins/ts_lua.en.po index 86b424d1e0..ffa7e672fe 100644 --- a/doc/locale/ja/LC_MESSAGES/admin-guide/plugins/ts_lua.en.po +++ b/doc/locale/ja/LC_MESSAGES/admin-guide/plugins/ts_lua.en.po @@ -2630,7 +2630,7 @@ msgstr "" #: ../../../admin-guide/plugins/ts_lua.en.rst:2872 msgid "" -"**description:** This function can be used to retireve the value of control " +"**description:** This function can be used to retrieve the value of control " "channel." msgstr "" @@ -2662,7 +2662,7 @@ msgstr "" #: ../../../admin-guide/plugins/ts_lua.en.rst:2921 msgid "" -"**description:** This function can be used to retireve the various " +"**description:** This function can be used to retrieve the various " "milestone times. They are how long the transaction took to traverse " "portions of the HTTP state machine. Each milestone value is a fractional " "number of seconds since the beginning of the transaction." diff --git a/doc/locale/ja/LC_MESSAGES/developer-guide/architecture/architecture.en.po b/doc/locale/ja/LC_MESSAGES/developer-guide/architecture/architecture.en.po index bfa0854ca2..d48ed8f59f 100644 --- a/doc/locale/ja/LC_MESSAGES/developer-guide/architecture/architecture.en.po +++ b/doc/locale/ja/LC_MESSAGES/developer-guide/architecture/architecture.en.po @@ -122,7 +122,7 @@ msgstr "二つのキャッシュスパン" msgid "" "This storage organized into a set of :term:`cache volumes <cache volume>` " "which are defined in :file:`volume.config`. These are the units that are " -"used for all other administator level configuration." +"used for all other administrator level configuration." msgstr "" "このストレージは一組の :term:`キャッシュボリューム` で構成されます。 :term:`" "キャッシュボリューム` は :file:`volume.config` で定義されます。これらは全て" diff --git a/doc/locale/ja/LC_MESSAGES/developer-guide/documentation/conventions.en.po b/doc/locale/ja/LC_MESSAGES/developer-guide/documentation/conventions.en.po index 9dc72cd024..cc8e777814 100644 --- a/doc/locale/ja/LC_MESSAGES/developer-guide/documentation/conventions.en.po +++ b/doc/locale/ja/LC_MESSAGES/developer-guide/documentation/conventions.en.po @@ -182,7 +182,7 @@ msgstr "" #: ../../developer-guide/documentation/conventions.en.rst:117 msgid "" -"Explicityly numbered ordered lists should be avoided. |RST| provides two " +"Explicitly numbered ordered lists should be avoided. |RST| provides two " "methods of marking up ordered, numbered lists, and the automatic numbering " "form should be used in all cases where surrounding paragraphs do not need " "to reference individual list entries." diff --git a/doc/locale/ja/LC_MESSAGES/developer-guide/plugins/example-plugins/blacklist/setting-a-global-hook.en.po b/doc/locale/ja/LC_MESSAGES/developer-guide/plugins/example-plugins/blacklist/setting-a-global-hook.en.po index 7e1bdf09ac..e7ac81c140 100644 --- a/doc/locale/ja/LC_MESSAGES/developer-guide/plugins/example-plugins/blacklist/setting-a-global-hook.en.po +++ b/doc/locale/ja/LC_MESSAGES/developer-guide/plugins/example-plugins/blacklist/setting-a-global-hook.en.po @@ -49,7 +49,7 @@ msgstr "" #: ../../developer-guide/plugins/example-plugins/blacklist/setting-a-global-hook.en.rst:35 msgid "" "This means that the Blacklist plugin is called at every origin server DNS " -"lookup. When it is called, the handler functio ``blacklist_plugin`` " +"lookup. When it is called, the handler function ``blacklist_plugin`` " "receives ``TS_EVENT_HTTP_OS_DNS`` and calls ``handle_dns`` to see if the " "request is forbidden." msgstr "" diff --git a/include/records/I_RecHttp.h b/include/records/I_RecHttp.h index 8dad83c098..bafa0fd4f7 100644 --- a/include/records/I_RecHttp.h +++ b/include/records/I_RecHttp.h @@ -545,6 +545,6 @@ extern void ts_session_protocol_well_known_name_indices_init(); * * TODO: ideally this would take a ts::TextView for @a protocols, but currently * ts::TextView does not have a char* constructor while std::string_view does. - * Once that is added, this can be seemlessly switched to a ts::TextView. + * Once that is added, this can be seamlessly switched to a ts::TextView. */ bool convert_alpn_to_wire_format(std::string_view protocols, unsigned char *wire_format_buffer, int &wire_format_buffer_len); diff --git a/include/shared/rpc/RPCRequests.h b/include/shared/rpc/RPCRequests.h index dd441e46a3..b022387115 100644 --- a/include/shared/rpc/RPCRequests.h +++ b/include/shared/rpc/RPCRequests.h @@ -34,7 +34,7 @@ namespace shared::rpc { struct JSONRPCRequest { - std::string jsonrpc{"2.0"}; //!< Always 2.0 as this is the only version that teh server supports. + std::string jsonrpc{"2.0"}; //!< Always 2.0 as this is the only version that the server supports. std::string method; //!< remote method name. std::string id; //!< optional, only needed for method calls. YAML::Node params; //!< This is defined by each remote API. @@ -49,7 +49,7 @@ struct JSONRPCRequest { }; struct JSONRPCResponse { - std::string id; //!< Always 2.0 as this is the only version that teh server supports. + std::string id; //!< Always 2.0 as this is the only version that the server supports. std::string jsonrpc; //!< Always 2.0 YAML::Node result; //!< Server's response, this could be decoded by using the YAML::convert mechanism. This depends solely on the //!< server's data. Check docs and schemas. diff --git a/include/ts/ts.h b/include/ts/ts.h index d3f5a6d615..e508a469ca 100644 --- a/include/ts/ts.h +++ b/include/ts/ts.h @@ -2831,7 +2831,7 @@ tsapi TSReturnCode TSRPCHandlerDone(TSYaml resp); * call. * @param code Error code. * @param descr A text with a description of the error. - * @param descr_len The length of the descrition string. + * @param descr_len The length of the description string. * @note The @c code and @c descr will be part of the @c 'data' field in the jsonrpc error response. * @return TS_SUCCESS if no issues. TS_ERROR otherwise. */ diff --git a/include/tscore/Diags.h b/include/tscore/Diags.h index 7e2b872fb2..5e2cbbaae3 100644 --- a/include/tscore/Diags.h +++ b/include/tscore/Diags.h @@ -170,7 +170,7 @@ is_dbg_ctl_enabled(DbgCtl const &ctl) } // printf-line debug output. First parameter must be DbgCtl instance. Assumes debug control is enabled, and -// debug output globablly enabled. +// debug output globally enabled. // #define DbgPrint(CTL, ...) \ do { \ diff --git a/include/tscore/Regex.h b/include/tscore/Regex.h index cfc678dfce..7394dfebe7 100644 --- a/include/tscore/Regex.h +++ b/include/tscore/Regex.h @@ -70,7 +70,7 @@ public: /** Execute the regular expression. * * @param str String to match against. - * @return @c true if the patter matched, @a false if not. + * @return @c true if the pattern matched, @a false if not. * * It is safe to call this method concurrently on the same instance of @a this. */ @@ -81,7 +81,7 @@ public: * @param str String to match against. * @param ovector Capture results. * @param ovecsize Number of elements in @a ovector. - * @return @c true if the patter matched, @a false if not. + * @return @c true if the pattern matched, @a false if not. * * It is safe to call this method concurrently on the same instance of @a this. * diff --git a/include/tscpp/util/TsSharedMutex.h b/include/tscpp/util/TsSharedMutex.h index 7ee0ab84c2..e43c4347c6 100644 --- a/include/tscpp/util/TsSharedMutex.h +++ b/include/tscpp/util/TsSharedMutex.h @@ -188,7 +188,7 @@ private: L_Fatal("%s(%p) failed: %s (%d)", func_name, ptr, Strerror(errnum).c_str(), errnum); } - // In debug builds, make sure shared vs. exlusive locks and unlocks are properly paired. + // In debug builds, make sure shared vs. exclusive locks and unlocks are properly paired. // X(std::atomic<bool> _exclusive{false};) X(std::atomic<int> _shared{0};) diff --git a/iocore/eventsystem/I_Continuation.h b/iocore/eventsystem/I_Continuation.h index b32605b4de..ef0854a2ba 100644 --- a/iocore/eventsystem/I_Continuation.h +++ b/iocore/eventsystem/I_Continuation.h @@ -78,7 +78,7 @@ continuation_handler_void_ptr(int (C::*fp)(int, T *)) // with multiple inheritance of the C templated type. Make sure that for type // C the Continuation parent is listed first (either directly or indirectly // via the inheritance tree) before any other parent in the multiple class - // heirarchy of C. + // hierarchy of C. return static_cast<ContinuationHandler>(fp2); } diff --git a/iocore/eventsystem/I_EThread.h b/iocore/eventsystem/I_EThread.h index 05de946ba0..eaff00118d 100644 --- a/iocore/eventsystem/I_EThread.h +++ b/iocore/eventsystem/I_EThread.h @@ -453,7 +453,7 @@ public: static constexpr unsigned N_STAT_ID = unsigned(STAT_ID::LOOP_TIME_MAX) + 1; /// Statistic name stems. - /// These will be qualfied by time scale. + /// These will be qualified by time scale. static char const *const STAT_NAME[N_STAT_ID]; Slice() = default; diff --git a/iocore/hostdb/HostDB.cc b/iocore/hostdb/HostDB.cc index 1cf6307661..34f7755f46 100644 --- a/iocore/hostdb/HostDB.cc +++ b/iocore/hostdb/HostDB.cc @@ -1467,7 +1467,7 @@ HostDBContinuation::updateHostFileConfig() // // Background event -// Increment the hostdb_current_timestamp which funcions as our cached version +// Increment the hostdb_current_timestamp which functions as our cached version // of ts_clock::now(). Might do other stuff here, like move records to the // current position in the cluster. int diff --git a/iocore/hostdb/HostFile.cc b/iocore/hostdb/HostFile.cc index 42af0c26fa..6a55990aa8 100644 --- a/iocore/hostdb/HostFile.cc +++ b/iocore/hostdb/HostFile.cc @@ -105,7 +105,7 @@ ParseHostFile(ts::file::path const &path, ts_seconds interval) // Common loading function for creating a record from the address vector. auto loader = [](ts::TextView key, std::vector<IpAddr> const &v) -> HostDBRecord::Handle { HostDBRecord::Handle record{HostDBRecord::alloc(key, v.size())}; - record->af_family = v.front().family(); // @a v is presumed family homogenous + record->af_family = v.front().family(); // @a v is presumed family homogeneous auto rr_info = record->rr_info(); auto spot = v.begin(); for (auto &item : rr_info) { diff --git a/iocore/hostdb/I_HostDBProcessor.h b/iocore/hostdb/I_HostDBProcessor.h index 2d8c01ced5..ddb2ceece9 100644 --- a/iocore/hostdb/I_HostDBProcessor.h +++ b/iocore/hostdb/I_HostDBProcessor.h @@ -341,7 +341,7 @@ public: ts_time ip_timestamp; /// Valid duration of the DNS response data. - /// In the code this functions as the TTL in HostDB calcuations, but may not + /// In the code this functions as the TTL in HostDB calculations, but may not /// be the response's TTL based upon configuration such as /// proxy.config.hostdb.ttl_mode. ts_seconds ip_timeout_interval; @@ -466,7 +466,7 @@ public: * @return The current index. * * @note The internal index may be out of range due to concurrency constraints - this insures the - * returned valu is in range. + * returned value is in range. */ unsigned short rr_idx() const; diff --git a/iocore/net/TLSEarlyDataSupport.cc b/iocore/net/TLSEarlyDataSupport.cc index 1cce292a54..469cd0191f 100644 --- a/iocore/net/TLSEarlyDataSupport.cc +++ b/iocore/net/TLSEarlyDataSupport.cc @@ -1,6 +1,6 @@ /** @file - TLSSEarlyDataSupport.cc provides implmentations for + TLSSEarlyDataSupport.cc provides implementations for TLSEarlyDataSupport methods @section license License diff --git a/mgmt/rpc/handlers/common/RecordsUtils.h b/mgmt/rpc/handlers/common/RecordsUtils.h index 0127a58d3e..39e6583e83 100644 --- a/mgmt/rpc/handlers/common/RecordsUtils.h +++ b/mgmt/rpc/handlers/common/RecordsUtils.h @@ -82,7 +82,7 @@ std::tuple<YAML::Node, std::error_code> get_yaml_record(std::string const &name, /// @brief Get a Record as a YAML node using regex as name. /// /// @param regex The regex that will be used to lookup records. -/// @param recType The record type we want to match againts the retrieved records. This could be either a single value or a bitwise +/// @param recType The record type we want to match against the retrieved records. This could be either a single value or a bitwise /// value. /// @return std::tuple<YAML::Node, std::error_code> /// diff --git a/mgmt/rpc/handlers/config/Configuration.cc b/mgmt/rpc/handlers/config/Configuration.cc index f3c26ef622..7ba5a957fb 100644 --- a/mgmt/rpc/handlers/config/Configuration.cc +++ b/mgmt/rpc/handlers/config/Configuration.cc @@ -107,7 +107,7 @@ set_config_records(std::string_view const &id, YAML::Node const ¶ms) { ts::Rv<YAML::Node> resp; - // we need the type and the udpate type for now. + // we need the type and the update type for now. using LookupContext = std::tuple<RecDataT, RecCheckT, const char *, RecUpdateT>; for (auto const &kv : params) { diff --git a/mgmt/rpc/handlers/records/Records.cc b/mgmt/rpc/handlers/records/Records.cc index 5264594b95..173389c69c 100644 --- a/mgmt/rpc/handlers/records/Records.cc +++ b/mgmt/rpc/handlers/records/Records.cc @@ -89,7 +89,7 @@ template <> struct convert<RequestRecordElement> { return false; } - // TODO: Add "type" paramater to just say, `config`, `metric`. May be handier. + // TODO: Add "type" parameter to just say, `config`, `metric`. May be handier. if (auto n = node[utils::RECORD_TYPES_KEY]) { // if it's empty should be ok, will get all of them. diff --git a/mgmt/rpc/jsonrpc/unit_tests/test_basic_protocol.cc b/mgmt/rpc/jsonrpc/unit_tests/test_basic_protocol.cc index b0d02de331..d61e0c6cc2 100644 --- a/mgmt/rpc/jsonrpc/unit_tests/test_basic_protocol.cc +++ b/mgmt/rpc/jsonrpc/unit_tests/test_basic_protocol.cc @@ -108,7 +108,7 @@ TEST_CASE("Register/call method", "[method]") { JsonRpcUnitTest rpc; - SECTION("Registring the method") + SECTION("Registering the method") { REQUIRE(rpc.add_method_handler("test_callback_ok_or_error", &test_callback_ok_or_error)); @@ -128,7 +128,7 @@ TEST_CASE("Register/call method - respond with errors (data field)", "[method][e { JsonRpcUnitTest rpc; - SECTION("Registring the method") + SECTION("Registering the method") { REQUIRE(rpc.add_method_handler("test_callback_ok_or_error", &test_callback_ok_or_error)); @@ -148,7 +148,7 @@ TEST_CASE("Register/call notification", "[notifications]") { JsonRpcUnitTest rpc; - SECTION("Registring the notification") + SECTION("Registering the notification") { REQUIRE(rpc.add_notification_handler("test_nofitication", &test_nofitication)); diff --git a/mgmt/rpc/server/CommBase.cc b/mgmt/rpc/server/CommBase.cc index acec7764c3..bade21469a 100644 --- a/mgmt/rpc/server/CommBase.cc +++ b/mgmt/rpc/server/CommBase.cc @@ -37,7 +37,7 @@ CommInternalErrorCategory::message(int ev) const { switch (static_cast<rpc::comm::InternalError>(ev)) { case rpc::comm::InternalError::MAX_TRANSIENT_ERRORS_HANDLED: - return {"We've reach the maximun attempt on transient errors."}; + return {"We've reach the maximum attempt on transient errors."}; case rpc::comm::InternalError::POLLIN_ERROR: return {"We haven't got a POLLIN flag back while waiting"}; case rpc::comm::InternalError::PARTIAL_READ: diff --git a/mgmt/rpc/server/IPCSocketServer.cc b/mgmt/rpc/server/IPCSocketServer.cc index df84a6dbe1..36ef75b5ea 100644 --- a/mgmt/rpc/server/IPCSocketServer.cc +++ b/mgmt/rpc/server/IPCSocketServer.cc @@ -234,7 +234,7 @@ IPCSocketServer::accept(std::error_code &ec) const } if (ret < 0) { - // seems that we have reched the max retries. + // seems that we have reached the max retries. ec = InternalError::MAX_TRANSIENT_ERRORS_HANDLED; } diff --git a/mgmt/rpc/server/unit_tests/test_rpcserver.cc b/mgmt/rpc/server/unit_tests/test_rpcserver.cc index 67c400aad0..6ef69b61c1 100644 --- a/mgmt/rpc/server/unit_tests/test_rpcserver.cc +++ b/mgmt/rpc/server/unit_tests/test_rpcserver.cc @@ -156,7 +156,7 @@ getTemporaryDir() return fs::path(mkdtemp(dirNameTemplate)); } -// Handy class to avoid manually disconecting the socket. +// Handy class to avoid manually disconnecting the socket. // TODO: should it also connect? struct ScopedLocalSocket : shared::rpc::IPCSocketClient { using super = shared::rpc::IPCSocketClient; diff --git a/plugins/experimental/fastcgi/src/Readme b/plugins/experimental/fastcgi/src/Readme index 20eb093529..a89c676f6e 100644 --- a/plugins/experimental/fastcgi/src/Readme +++ b/plugins/experimental/fastcgi/src/Readme @@ -47,7 +47,7 @@ OR Build and install using Makefile utility: # 1. ATS_SRC --either set or export env variable path to traffic server src directory # 2. ATS_EXEC --either set or export env variable path to traffic server exec directory - Afterwords command, $> make && sudo -E make install + Afterwards command, $> make && sudo -E make install For example: make ATS_SRC=/home/oschaaf/code/apache/trafficserver ATS_EXEC=/usr/local/ CPPFLAGS=-std=c++11 diff --git a/plugins/experimental/otel_tracer/tracer_common.h b/plugins/experimental/otel_tracer/tracer_common.h index 8d24a9e225..9eddb7c84b 100644 --- a/plugins/experimental/otel_tracer/tracer_common.h +++ b/plugins/experimental/otel_tracer/tracer_common.h @@ -84,7 +84,7 @@ public: }; // this object is created using placement new therefore all destructors needs -// to be called explictly inside Destruct method +// to be called explicitly inside Destruct method struct ExtraRequestData { nostd::shared_ptr<trace::Span> span; diff --git a/plugins/experimental/parent_select/consistenthash.cc b/plugins/experimental/parent_select/consistenthash.cc index 0317407a99..a154ddc60b 100644 --- a/plugins/experimental/parent_select/consistenthash.cc +++ b/plugins/experimental/parent_select/consistenthash.cc @@ -161,7 +161,7 @@ PLNextHopConsistentHash::PLNextHopConsistentHash(const std::string_view name, co p->group_index = host_groups[i][j]->group_index; p->host_index = host_groups[i][j]->host_index; hash_ring->insert(p, p->weight, &hash); - PL_NH_Debug(PL_NH_DEBUG_TAG, "Loading hash rings - ring: %d, host record: %d, name: %s, hostname: %s, stategy: %s", i, j, + PL_NH_Debug(PL_NH_DEBUG_TAG, "Loading hash rings - ring: %d, host record: %d, name: %s, hostname: %s, strategy: %s", i, j, p->name, p->hostname.c_str(), strategy_name.c_str()); } hash.clear(); diff --git a/plugins/experimental/rate_limit/ip_reputation.h b/plugins/experimental/rate_limit/ip_reputation.h index 4abbbcaa08..7898739770 100644 --- a/plugins/experimental/rate_limit/ip_reputation.h +++ b/plugins/experimental/rate_limit/ip_reputation.h @@ -84,7 +84,7 @@ using HashMap = std::unordered_map<KeyClass, SieveBucket::iterator>; // The hash class SieveLru { public: - SieveLru() : _lock(TSMutexCreate()){}; // The unitialized version + SieveLru() : _lock(TSMutexCreate()){}; // The uninitialized version SieveLru(uint32_t num_buckets, uint32_t size); ~SieveLru() { diff --git a/plugins/experimental/rate_limit/sni_limiter.h b/plugins/experimental/rate_limit/sni_limiter.h index 93b1b5558d..300b246a99 100644 --- a/plugins/experimental/rate_limit/sni_limiter.h +++ b/plugins/experimental/rate_limit/sni_limiter.h @@ -57,7 +57,7 @@ public: private: // ToDo: These should be moved to global configurations to have one shared IP Reputation. - // today the configuration of this is so klunky, that there is no easy way to make it "global". + // today the configuration of this is so clunky, that there is no easy way to make it "global". std::chrono::seconds _iprep_max_age = std::chrono::seconds::zero(); // Max age in the SieveLRUs for regular buckets std::chrono::seconds _iprep_perma_max_age = std::chrono::seconds::zero(); // Max age in the SieveLRUs for perma-block buckets uint32_t _iprep_num_buckets = 10; // Number of buckets. ToDo: leave this at 10 always diff --git a/plugins/experimental/wasm/wasm_main.cc b/plugins/experimental/wasm/wasm_main.cc index 5b691b1a13..d9343ec956 100644 --- a/plugins/experimental/wasm/wasm_main.cc +++ b/plugins/experimental/wasm/wasm_main.cc @@ -251,7 +251,7 @@ global_hook_handler(TSCont /*contp*/, TSEvent /*event*/, void *data) TSHttpTxnHookAdd(txnp, TS_HTTP_READ_REQUEST_HDR_HOOK, txn_contp); TSHttpTxnHookAdd(txnp, TS_HTTP_READ_RESPONSE_HDR_HOOK, txn_contp); TSHttpTxnHookAdd(txnp, TS_HTTP_TXN_CLOSE_HOOK, txn_contp); - // add send respose hook for local reply if needed + // add send response hook for local reply if needed TSHttpTxnHookAdd(txnp, TS_HTTP_SEND_RESPONSE_HDR_HOOK, txn_contp); TSContDataSet(txn_contp, context); diff --git a/proxy/ControlMatcher.h b/proxy/ControlMatcher.h index 4d577c0954..2a9509d05d 100644 --- a/proxy/ControlMatcher.h +++ b/proxy/ControlMatcher.h @@ -63,7 +63,7 @@ * sized array and a constant time index (class charIndex). The constant * time index is only used to from the root domain to the first * level partition (ie: .com). The fixed array is used for subsequent - * paritions until the fan out exceeds the arrays fixed size at which + * partitions until the fan out exceeds the arrays fixed size at which * time, the fixed array is converted to a hash table * * ip table - supports ip ranges. A single ip address is treated as diff --git a/proxy/IPAllow.h b/proxy/IPAllow.h index 6c584153ee..4f50396993 100644 --- a/proxy/IPAllow.h +++ b/proxy/IPAllow.h @@ -82,7 +82,7 @@ class IpAllow : public ConfigInfo Record(uint32_t method_mask, int line, MethodNames &&nonstandard_methods, bool deny_nonstandard_methods); uint32_t _method_mask{0}; ///< Well known method mask. - int _src_line{0}; ///< Configuration file sourc line. + int _src_line{0}; ///< Configuration file source line. MethodNames _nonstandard_methods; ///< Allowed methods that are not well known. bool _deny_nonstandard_methods{false}; ///< Denied methods that are not well known. }; diff --git a/proxy/InkAPIInternal.h b/proxy/InkAPIInternal.h index 0500add37d..9728daac97 100644 --- a/proxy/InkAPIInternal.h +++ b/proxy/InkAPIInternal.h @@ -120,7 +120,7 @@ public: // This is like invoke(), but allows for blocking on continuation mutexes. It is a hack, calling it can block // the calling thread. Hooks that require this should be reimplemented, modeled on the hook handling in HttpSM.cc . - // That is, try to lock the mutex, and reschedule the contination if the mutex cannot be locked. + // That is, try to lock the mutex, and reschedule the continuation if the mutex cannot be locked. // int blocking_invoke(int event, void *edata) const; }; diff --git a/proxy/hdrs/VersionConverter.cc b/proxy/hdrs/VersionConverter.cc index 16280157e4..bbf61b9c98 100644 --- a/proxy/hdrs/VersionConverter.cc +++ b/proxy/hdrs/VersionConverter.cc @@ -156,7 +156,7 @@ VersionConverter::_convert_req_from_2_to_1(HTTPHdr &header) const int scheme_wks_idx = hdrtoken_tokenize(scheme, scheme_len, &scheme_wks); if (!(scheme_wks_idx > 0 && hdrtoken_wks_to_token_type(scheme_wks) == HDRTOKEN_TYPE_SCHEME)) { - // unkown scheme, validate the scheme + // unknown scheme, validate the scheme if (!validate_scheme({scheme, static_cast<size_t>(scheme_len)})) { return PARSE_RESULT_ERROR; } diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc index 71a208a095..924cdc8b2d 100644 --- a/proxy/http/HttpSM.cc +++ b/proxy/http/HttpSM.cc @@ -4162,7 +4162,7 @@ HttpSM::check_sni_host() this->t_state.client_connection_enabled = false; } } else { - SMDebug("ssl_sni", "SNI/hostname sucessfully match sni=%s host=%.*s", sni_value, host_len, host_name); + SMDebug("ssl_sni", "SNI/hostname successfully match sni=%s host=%.*s", sni_value, host_len, host_name); } } else { SMDebug("ssl_sni", "No SNI/hostname check configured for host=%.*s", host_len, host_name); @@ -7002,7 +7002,7 @@ HttpSM::setup_blind_tunnel(bool send_response_hdr, IOBufferReader *initial) ua_raw_buffer_reader = nullptr; } - // if pre-warmed connection is used and it has data from origin server, foward it to ua + // if pre-warmed connection is used and it has data from origin server, forward it to ua if (_prewarm_sm && _prewarm_sm->has_data_from_origin_server()) { ink_release_assert(_prewarm_sm->handler == &PreWarmSM::state_closed); client_response_hdr_bytes += to_ua_buf->write(_prewarm_sm->server_buf_reader()); diff --git a/proxy/http/HttpSessionManager.h b/proxy/http/HttpSessionManager.h index 6375d788c6..0f10b5d599 100644 --- a/proxy/http/HttpSessionManager.h +++ b/proxy/http/HttpSessionManager.h @@ -131,7 +131,7 @@ public: private: /// Global pool, used if not per thread pools. - /// @internal We delay creating this because the session manager is created during global statics init. + /// @internal We delay creating this because the session manager is created during global statistics init. ServerSessionPool *m_g_pool = nullptr; HSMresult_t _acquire_session(sockaddr const *ip, CryptoHash const &hostname_hash, HttpSM *sm, TSServerSessionSharingMatchMask match_style, TSServerSessionSharingPoolType pool_type); diff --git a/proxy/http/stats.memo b/proxy/http/stats.memo index ae56c2338e..d80799d4a1 100644 --- a/proxy/http/stats.memo +++ b/proxy/http/stats.memo @@ -7,7 +7,7 @@ Date: Feb 13, 1997 +----------------+ -Proxy Schems: +Proxy Schemes: ------------- Name : SchemeEnabled Type : A bit vector. a bit per scheme. diff --git a/proxy/http2/Http2ConnectionState.cc b/proxy/http2/Http2ConnectionState.cc index 01b8c9a55b..95b3d08fdd 100644 --- a/proxy/http2/Http2ConnectionState.cc +++ b/proxy/http2/Http2ConnectionState.cc @@ -576,7 +576,7 @@ Http2ConnectionState::rcv_settings_frame(const Http2Frame &frame) Warning("Setting frame for zombied session %" PRId64, this->session->get_connection_id()); } - // Update SETTIGNS frame count per minute + // Update SETTINGS frame count per minute this->increment_received_settings_frame_count(); // Close this connection if its SETTINGS frame count exceeds a limit if (this->get_received_settings_frame_count() > Http2::max_settings_frames_per_minute) { @@ -1365,7 +1365,7 @@ Http2ConnectionState::create_stream(Http2StreamId new_id, Http2Error &error) uint32_t initial_stream_window_target = initial_stream_window; if (is_client_streamid && this->_has_dynamic_stream_window()) { // For dynamic stream windows, the peer's idea of what the window size is - // may be different than what we are configuring. Our calulated server + // may be different than what we are configuring. Our calculated server // receive window is always maintained at what the peer has acknowledged so // far. This prevents us from enforcing window sizes that have been // adjusted by SETTINGS frames which the peer has not received yet. So we diff --git a/proxy/http2/Http2ConnectionState.h b/proxy/http2/Http2ConnectionState.h index 1ab2f74b56..7c70b5a275 100644 --- a/proxy/http2/Http2ConnectionState.h +++ b/proxy/http2/Http2ConnectionState.h @@ -229,7 +229,7 @@ private: /** Receive and process a SETTINGS frame with the ACK flag set. * * This function will process any settings updates that have now been - * acknowleged by the peer. + * acknowledged by the peer. */ void _process_incoming_settings_ack_frame(); @@ -337,7 +337,7 @@ private: /** Returns the settings parameters that were configured via the SETTINGS frame * associated with this instance. * - * @return The settigns parameters that were configured at the time the + * @return The settings parameters that were configured at the time the * associated SETTINGS frame was sent. @note that this is not just the * values in the SETTINGS frame, but those values along with all the local * settings that were in place but not explicitly configured via the frame. diff --git a/proxy/http3/Http3App.cc b/proxy/http3/Http3App.cc index 773bad22ea..7519fe292f 100644 --- a/proxy/http3/Http3App.cc +++ b/proxy/http3/Http3App.cc @@ -201,7 +201,7 @@ Http3App::_handle_uni_stream_on_read_ready(int /* event */, VIO *vio) auto ret = this->_remote_uni_stream_map.insert(std::make_pair(adapter->stream().id(), type)); if (!ret.second) { - // A stream for the type is already exisits + // A stream for the type is already exists // TODO Return an error } } else { diff --git a/tests/README.md b/tests/README.md index e28a6b9075..e1ff360cb0 100644 --- a/tests/README.md +++ b/tests/README.md @@ -214,7 +214,7 @@ ts.Disk.remap_config.AddLine( ## Setting up DNS ### Test.MakeDNServer(name, default=None) * name - A name for this instance of the DNS. - * default - if a list argument is provided, uDNS will reply with the list contents instead of NXDOMAIN if a DNS can't be found for a partcular entry + * default - if a list argument is provided, uDNS will reply with the list contents instead of NXDOMAIN if a DNS can't be found for a particular entry This function returns a AuTest process object that launches the python-based microDNS (uDNS). uDNS is a mock DNS which responds to DNS queries. uDNS needs to be setup for the tests that require made-up domains. The server reads a JSON-formatted data file that contains mappings of domain to IP addresses. uDNS responds with the appropriate IP addresses if the requested domain is in uDNS' mappings. diff --git a/tests/gold_tests/jsonrpc/jsonrpc_api_schema.test.py b/tests/gold_tests/jsonrpc/jsonrpc_api_schema.test.py index 2591bd62f7..499bd90455 100644 --- a/tests/gold_tests/jsonrpc/jsonrpc_api_schema.test.py +++ b/tests/gold_tests/jsonrpc/jsonrpc_api_schema.test.py @@ -110,7 +110,7 @@ ts.Disk.storage_config.AddLine(f"{storage_path} 512M") # The following tests will only validate the jsonrpc message, it will not run any validation on the content of the 'result' or 'params' -# of the jsonrpc message. This should be added once the schemas are avilable. +# of the jsonrpc message. This should be added once the schemas are available. # jsonrpc 2.0 schema file. This will not check the param fields. diff --git a/tests/gold_tests/pluginTest/TSVConnFd/TSVConnFd.cc b/tests/gold_tests/pluginTest/TSVConnFd/TSVConnFd.cc index 526199d8d1..c066452a03 100644 --- a/tests/gold_tests/pluginTest/TSVConnFd/TSVConnFd.cc +++ b/tests/gold_tests/pluginTest/TSVConnFd/TSVConnFd.cc @@ -254,7 +254,7 @@ Recv_from_vconn::_cont_func(TSCont cont, TSEvent event, void *edata) case TS_EVENT_VCONN_READ_READY: break; - // My best guess is that this event is triggered when all the bytes reqeusted in the read VIO have been received. + // My best guess is that this event is triggered when all the bytes requested in the read VIO have been received. // This should not happen for this class because the number bytes for the read VIO is INT64_MAX, effectively // infinite. // @@ -391,7 +391,7 @@ Send_to_vconn::send(void const *data, int64_t n_bytes) if (start_vio) { // Note that the VConn implementor is required to lock the mutex of the given continuation when reading data - // with the given I/O buffer reader. The same mutex must be locked when writting into the I/O buffer being + // with the given I/O buffer reader. The same mutex must be locked when writing into the I/O buffer being // read. // nonNullPtrDbg(TSVConnWrite(_vconn, _cont.get(), _io_buf_reader.get(), bs)); diff --git a/tests/gold_tests/proxy_protocol/proxy_protocol_server.py b/tests/gold_tests/proxy_protocol/proxy_protocol_server.py index af1a52820f..c940cf45b5 100644 --- a/tests/gold_tests/proxy_protocol/proxy_protocol_server.py +++ b/tests/gold_tests/proxy_protocol/proxy_protocol_server.py @@ -153,7 +153,7 @@ def parse_pp_v1(pp_bytes: bytes) -> int: :param pp_bytes: The bytes containing the Proxy Protocol string. There may be more bytes than the Proxy Protocol string. - :returns: The number of bytes occupied by the proxy v1 protcol. + :returns: The number of bytes occupied by the proxy v1 protocol. """ # Proxy Protocol v1 string ends with CRLF. end = pp_bytes.find(b'\r\n') @@ -282,7 +282,7 @@ def accept_pp_connection(sock: socket.socket, address: str, internal_port: int) break if len(received_data) > 108: - # The spec gaurantees that the prefix will be no more than + # The spec guarantees that the prefix will be no more than # 108 bytes. logging.info("No Proxy Protocol string found.") break @@ -291,7 +291,7 @@ def accept_pp_connection(sock: socket.socket, address: str, internal_port: int) # the rest of the content. for_internal = received_data[pp_length:] logging.debug( - f"Stripped the prefix, now thare are {len(for_internal)} " + f"Stripped the prefix, now there are {len(for_internal)} " "bytes for the internal server.") else: for_internal = received_data diff --git a/tools/http_load/timers.h b/tools/http_load/timers.h index f61c5e87d9..eb56c80135 100644 --- a/tools/http_load/timers.h +++ b/tools/http_load/timers.h @@ -97,5 +97,5 @@ extern void tmr_cancel(Timer *timer); /* Clean up the timers package, freeing any unused storage. */ extern void tmr_cleanup(void); -/* Cancel all timers and free storage, usually in preparation for exitting. */ +/* Cancel all timers and free storage, usually in preparation for exiting. */ extern void tmr_destroy(void); diff --git a/tools/jtest/jtest.cc b/tools/jtest/jtest.cc index 7fd8433e4e..5b3eb6629e 100644 --- a/tools/jtest/jtest.cc +++ b/tools/jtest/jtest.cc @@ -3091,17 +3091,17 @@ build_request(int sock) char *eheaders_end = eheaders + sizeof(eheaders); if (!vary_user_agent) { eh += snprintf(eh, sizeof(eheaders) - (eh - eheaders), "User-Agent: Mozilla/4.04 [en] (X11; I; Linux 2.0.31 i586)\r\n"); - ink_release_assert(eh < eheaders_end); // valdate that eh doesn't point past eheaders (buffer overflow) + ink_release_assert(eh < eheaders_end); // validate that eh doesn't point past eheaders (buffer overflow) nheaders--; } if (nheaders > 0) { eh += snprintf(eh, sizeof(eheaders) - (eh - eheaders), "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*\r\n"); - ink_release_assert(eh < eheaders_end); // valdate that eh doesn't point past eheaders (buffer overflow) + ink_release_assert(eh < eheaders_end); // validate that eh doesn't point past eheaders (buffer overflow) } while (--nheaders > 0) { eh += snprintf(eh, sizeof(eheaders) - (eh - eheaders), "Extra-Header%d: a lot of junk for header %d\r\n", nheaders, nheaders); - ink_release_assert(eh < eheaders_end); // valdate that eh doesn't point past eheaders (buffer overflow) + ink_release_assert(eh < eheaders_end); // validate that eh doesn't point past eheaders (buffer overflow) } } char cookie[256];