This is an automated email from the ASF dual-hosted git repository.
bneradt 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 4f9f3eaaa7 Fix typos (#13064)
4f9f3eaaa7 is described below
commit 4f9f3eaaa70d28abc280de5fb32331c7d5af8536
Author: Amir Sarabadani <[email protected]>
AuthorDate: Tue Apr 7 21:04:01 2026 +0200
Fix typos (#13064)
This is done via a script I wrote to report typos and after I checked them
multiple times manually, I applied the correct ones. No AI was used.
---
src/cripts/Lulu.cc | 2 +-
src/iocore/cache/HttpTransactCache.cc | 2 +-
src/iocore/cache/StripeSM.cc | 2 +-
src/iocore/cache/unit_tests/test_RWW.cc | 8 ++++----
src/iocore/net/SSLConfig.cc | 2 +-
src/iocore/net/SSLSessionTicket.cc | 2 +-
src/iocore/net/UnixNetAccept.cc | 4 ++--
src/iocore/net/UnixUDPNet.cc | 2 +-
src/iocore/utils/Machine.cc | 2 +-
src/proxy/FetchSM.cc | 2 +-
src/proxy/IPAllow.cc | 4 ++--
src/proxy/ParentRoundRobin.cc | 2 +-
src/proxy/ParentSelection.cc | 2 +-
src/proxy/ParentSelectionStrategy.cc | 2 +-
src/proxy/ProtocolProbeSessionAccept.cc | 2 +-
src/proxy/Transform.cc | 2 +-
src/proxy/hdrs/HdrHeap.cc | 2 +-
src/proxy/hdrs/MIME.cc | 2 +-
src/proxy/hdrs/URL.cc | 2 +-
src/proxy/hdrs/unit_tests/test_XPACK.cc | 2 +-
src/proxy/http/HttpSM.cc | 2 +-
src/proxy/http/HttpTransact.cc | 4 ++--
src/proxy/http/PreWarmManager.cc | 2 +-
src/proxy/http/remap/NextHopRoundRobin.cc | 2 +-
src/proxy/http/remap/PluginFactory.cc | 2 +-
src/proxy/http/remap/UrlRewrite.cc | 2 +-
src/proxy/http/remap/unit-tests/test_NextHopConsistentHash.cc | 2 +-
src/proxy/http/unit_tests/test_HttpTransact.cc | 2 +-
src/proxy/http2/Http2CommonSession.cc | 2 +-
src/proxy/http2/Http2ConnectionState.cc | 8 ++++----
src/proxy/http3/Http3Session.cc | 2 +-
src/proxy/http3/Http3Transaction.cc | 4 ++--
src/proxy/logging/LogAccess.cc | 4 ++--
src/proxy/logging/LogField.cc | 4 ++--
src/proxy/logging/LogFile.cc | 2 +-
src/proxy/logging/LogFilter.cc | 2 +-
src/proxy/logging/LogFormat.cc | 2 +-
src/proxy/logging/LogObject.cc | 2 +-
src/proxy/logging/LogUtils.cc | 2 +-
src/traffic_ctl/CtrlPrinters.cc | 2 +-
src/traffic_server/traffic_server.cc | 4 ++--
src/tscore/unit_tests/test_CryptoHash.cc | 2 +-
src/tscore/unit_tests/test_IntrusivePtr.cc | 2 +-
src/tscore/unit_tests/test_SnowflakeID.cc | 2 +-
src/tscpp/api/InterceptPlugin.cc | 2 +-
45 files changed, 58 insertions(+), 58 deletions(-)
diff --git a/src/cripts/Lulu.cc b/src/cripts/Lulu.cc
index 85a2702b3f..b222bc1db0 100644
--- a/src/cripts/Lulu.cc
+++ b/src/cripts/Lulu.cc
@@ -181,7 +181,7 @@ cripts::Versions::GetSV()
if (_version.length() == 0) {
const char *ver = TSTrafficServerVersionGet();
- _version = cripts::string_view(ver, strlen(ver)); // ToDo: Annoyingly, we
have ambiquity on the operator=
+ _version = cripts::string_view(ver, strlen(ver)); // ToDo: Annoyingly, we
have ambiguity on the operator=
}
return _version;
diff --git a/src/iocore/cache/HttpTransactCache.cc
b/src/iocore/cache/HttpTransactCache.cc
index 47117ad90e..be8f0864d1 100644
--- a/src/iocore/cache/HttpTransactCache.cc
+++ b/src/iocore/cache/HttpTransactCache.cc
@@ -954,7 +954,7 @@
HttpTransactCache::calculate_quality_of_accept_encoding_match(MIMEField *accept_
///////////////////////////////////////////////////////////////////////
// if no Accept-Encoding header, only match identity //
// The 1.1 spec says servers MAY assume that clients will accept //
- // any encoding if no header is sent. Unforntunately, this does //
+ // any encoding if no header is sent. Unfortunately, this does //
// not work 1.0 clients & is particularly thorny when the proxy //
// created the encoding as the result of a transform. Http 1.1 //
// purists would say that if proxy encodes something it's really //
diff --git a/src/iocore/cache/StripeSM.cc b/src/iocore/cache/StripeSM.cc
index 2e39fc3098..b8b30cc223 100644
--- a/src/iocore/cache/StripeSM.cc
+++ b/src/iocore/cache/StripeSM.cc
@@ -110,7 +110,7 @@ struct StripeInitInfo {
};
// This is weird: the len passed to the constructor for _preserved_dirs is
-// initialized in the superclasse's constructor. This is safe because the
+// initialized in the superclass' constructor. This is safe because the
// superclass should always be initialized first.
StripeSM::StripeSM(CacheDisk *disk, off_t blocks, off_t dir_skip, int
avg_obj_size, int fragment_size)
: Continuation(new_ProxyMutex()),
diff --git a/src/iocore/cache/unit_tests/test_RWW.cc
b/src/iocore/cache/unit_tests/test_RWW.cc
index 981798dfa4..ee9d0b9778 100644
--- a/src/iocore/cache/unit_tests/test_RWW.cc
+++ b/src/iocore/cache/unit_tests/test_RWW.cc
@@ -93,7 +93,7 @@ public:
}
protected:
- // start at 1 framgents
+ // start at 1 fragments
int64_t _latest_fragments = 1;
size_t _size = 0;
Event *_read_event = nullptr;
@@ -256,7 +256,7 @@ public:
break;
case VC_EVENT_WRITE_COMPLETE:
- REQUIRE(!"should not happen because the writter aborted");
+ REQUIRE(!"should not happen because the writer aborted");
this->close_read();
this->close_write();
break;
@@ -289,7 +289,7 @@ public:
return;
case VC_EVENT_READ_COMPLETE:
- REQUIRE(!"should not happen because the writter aborted");
+ REQUIRE(!"should not happen because the writer aborted");
this->close_read();
this->close_write();
break;
@@ -378,7 +378,7 @@ public:
return;
case VC_EVENT_READ_COMPLETE:
- REQUIRE(!"should not happen because the writter aborted");
+ REQUIRE(!"should not happen because the writer aborted");
this->close_read();
this->close_write();
break;
diff --git a/src/iocore/net/SSLConfig.cc b/src/iocore/net/SSLConfig.cc
index 936821b41b..31362b39a9 100644
--- a/src/iocore/net/SSLConfig.cc
+++ b/src/iocore/net/SSLConfig.cc
@@ -891,7 +891,7 @@ SSLConfigParams::updateCTX(const std::string
&cert_secret_name) const
//
char const *s{expected};
for (; *s && (static_cast<std::size_t>(s - expected) <
cert_secret_name.size()); ++s) {}
- DbgPrint(dbg_ctl_ssl_config_updateCTX, "Update cert, indirect recusive
call caused by call for %.*s",
+ DbgPrint(dbg_ctl_ssl_config_updateCTX, "Update cert, indirect recursive
call caused by call for %.*s",
static_cast<int>(s - expected), expected);
}
return;
diff --git a/src/iocore/net/SSLSessionTicket.cc
b/src/iocore/net/SSLSessionTicket.cc
index 4d8442eb58..7d6674bd64 100644
--- a/src/iocore/net/SSLSessionTicket.cc
+++ b/src/iocore/net/SSLSessionTicket.cc
@@ -54,7 +54,7 @@ ssl_callback_session_ticket(SSL *ssl, unsigned char *keyname,
unsigned char *iv,
return srs->processSessionTicket(ssl, keyname, iv, cipher_ctx, hctx, enc);
} else {
// We could implement a default behavior that would have been done if this
callback was not registered, but it's not necessary
- // at the moment because TLSSessionResumptionSupport is alawys available
when the callback is registerd.
+ // at the moment because TLSSessionResumptionSupport is always available
when the callback is registered.
ink_assert(!"srs should be available");
// For now, make it an error (this would cause handshake failure)
diff --git a/src/iocore/net/UnixNetAccept.cc b/src/iocore/net/UnixNetAccept.cc
index 66e73096fa..d02c1aacc8 100644
--- a/src/iocore/net/UnixNetAccept.cc
+++ b/src/iocore/net/UnixNetAccept.cc
@@ -186,7 +186,7 @@ Ldone:
}
// if we stop looping as a result of hitting the accept limit,
- // resechedule accepting to the end of the thread event queue
+ // reschedule accepting to the end of the thread event queue
// for the goal of fairness between accepting and other work
Dbg(dbg_ctl_iocore_net_accepts, "exited accept loop - count: %d, limit: %d",
count, additional_accepts);
if (count >= additional_accepts) {
@@ -274,7 +274,7 @@ NetAccept::accept_per_thread(int /* event ATS_UNUSED */,
void * /* ep ATS_UNUSED
}
if (do_listen()) {
- Fatal("[NetAccept::accept_per_thread]:error listenting on ports");
+ Fatal("[NetAccept::accept_per_thread]:error listening on ports");
return -1;
}
}
diff --git a/src/iocore/net/UnixUDPNet.cc b/src/iocore/net/UnixUDPNet.cc
index b0a012f982..513b074c77 100644
--- a/src/iocore/net/UnixUDPNet.cc
+++ b/src/iocore/net/UnixUDPNet.cc
@@ -1539,7 +1539,7 @@ UDPQueue::SendUDPPacket(UDPPacket *p)
}
} else {
#endif
- // Send segments seprately if UDP_SEGMENT is not supported
+ // Send segments separately if UDP_SEGMENT is not supported
int offset = 0;
while (offset < p->p.chain.get()->size()) {
iov[0].iov_base = p->p.chain.get()->start() + offset;
diff --git a/src/iocore/utils/Machine.cc b/src/iocore/utils/Machine.cc
index 1134dcf7fb..3dc5f2d3e9 100644
--- a/src/iocore/utils/Machine.cc
+++ b/src/iocore/utils/Machine.cc
@@ -77,7 +77,7 @@ Machine::init(char const *name, sockaddr const *ip)
Machine::Machine(char const *the_hostname, sockaddr const *addr)
{
- // Initialize the machine IP infomation
+ // Initialize the machine IP information
bzero(&ip, sizeof(ip));
bzero(&ip4, sizeof(ip4));
bzero(&ip6, sizeof(ip6));
diff --git a/src/proxy/FetchSM.cc b/src/proxy/FetchSM.cc
index 11fef0f849..1edb53ce41 100644
--- a/src/proxy/FetchSM.cc
+++ b/src/proxy/FetchSM.cc
@@ -1,6 +1,6 @@
/** @file
- Implements callin functions for plugins
+ Implements calling functions for plugins
@section license License
diff --git a/src/proxy/IPAllow.cc b/src/proxy/IPAllow.cc
index 24c7dd67be..0cbca7100b 100644
--- a/src/proxy/IPAllow.cc
+++ b/src/proxy/IPAllow.cc
@@ -601,7 +601,7 @@ IpAllow::BuildCategories()
return {};
}
- Note("%s loading categores file %s ...", ts::filename::IP_ALLOW,
ip_categories_config_file.c_str());
+ Note("%s loading categories file %s ...", ts::filename::IP_ALLOW,
ip_categories_config_file.c_str());
std::string content{swoc::file::load(ip_categories_config_file, ec)};
swoc::Errata errata;
if (ec.value() == 0) {
@@ -618,7 +618,7 @@ IpAllow::BuildCategories()
} else {
return swoc::Errata(ERRATA_ERROR, "{} Failed to load {}", this, ec);
}
- Note("%s done loading categores file %s ...", ts::filename::IP_ALLOW,
ip_categories_config_file.c_str());
+ Note("%s done loading categories file %s ...", ts::filename::IP_ALLOW,
ip_categories_config_file.c_str());
return {};
}
diff --git a/src/proxy/ParentRoundRobin.cc b/src/proxy/ParentRoundRobin.cc
index cffae0f611..bcb5d0240f 100644
--- a/src/proxy/ParentRoundRobin.cc
+++ b/src/proxy/ParentRoundRobin.cc
@@ -155,7 +155,7 @@ ParentRoundRobin::selectParent(bool first_call,
ParentResult *result, RequestDat
if ((parents[cur_index].failedAt.load() == 0) ||
(parents[cur_index].failCount.load() < static_cast<int>(fail_threshold))) {
if (host_stat == TS_HOST_STATUS_UP) {
Dbg(dbg_ctl_parent_select, "FailThreshold = %d", fail_threshold);
- Dbg(dbg_ctl_parent_select, "Selecting a parent due to little failCount
(faileAt: %u failCount: %d)",
+ Dbg(dbg_ctl_parent_select, "Selecting a parent due to little failCount
(failedAt: %u failCount: %d)",
(unsigned)parents[cur_index].failedAt.load(),
parents[cur_index].failCount.load());
parentUp = true;
}
diff --git a/src/proxy/ParentSelection.cc b/src/proxy/ParentSelection.cc
index b1826a1e00..c18f44a212 100644
--- a/src/proxy/ParentSelection.cc
+++ b/src/proxy/ParentSelection.cc
@@ -856,7 +856,7 @@ ParentRecord::Init(matcher_line *line_info)
delete simple_server_retry_responses;
simple_server_retry_responses = nullptr;
} else if (simple_server_retry_responses == nullptr && parent_retry !=
ParentRetry_t::NONE) {
- // initialize simple server respones codes to the default value if
simple_retry is enabled.
+ // initialize simple server responses codes to the default value if
simple_retry is enabled.
Warning("%s initializing SimpleRetryResponseCodes on line %d to 404
default.", modulePrefix, line_num);
simple_server_retry_responses = new SimpleRetryResponseCodes(nullptr);
}
diff --git a/src/proxy/ParentSelectionStrategy.cc
b/src/proxy/ParentSelectionStrategy.cc
index b85658c3b2..4032203822 100644
--- a/src/proxy/ParentSelectionStrategy.cc
+++ b/src/proxy/ParentSelectionStrategy.cc
@@ -128,7 +128,7 @@ ParentSelectionStrategy::markParentUp(ParentResult *result)
pRec->failedAt = static_cast<time_t>(0);
int old_count = pRec->failCount.exchange(0, std::memory_order_relaxed);
- // a retry succeeded, just reset retriers
+ // a retry succeeded, just reset retries
if (old_count > 0) {
Note("http parent proxy %s:%d restored with request %s", pRec->hostname,
pRec->port, result->url);
diff --git a/src/proxy/ProtocolProbeSessionAccept.cc
b/src/proxy/ProtocolProbeSessionAccept.cc
index 3ba94633f2..e88926456d 100644
--- a/src/proxy/ProtocolProbeSessionAccept.cc
+++ b/src/proxy/ProtocolProbeSessionAccept.cc
@@ -125,7 +125,7 @@ struct ProtocolProbeTrampoline : public Continuation,
public ProtocolProbeSessio
} else {
Dbg(dbg_ctl_proxyprotocol,
"ioCompletionEvent: proxy protocol DOES NOT have a configured
allowlist of trusted IPs but proxy protocol is "
- "ernabled on this port - processing all connections");
+ "enabled on this port - processing all connections");
}
HttpConfigParams *param = HttpConfig::acquire();
int max_header_size = param->pp_hdr_max_size;
diff --git a/src/proxy/Transform.cc b/src/proxy/Transform.cc
index 4269595213..b2b9abbb0e 100644
--- a/src/proxy/Transform.cc
+++ b/src/proxy/Transform.cc
@@ -984,7 +984,7 @@ RangeTransform::transform_to_range()
// keep this part for future support of out-of-order Range
// if this is NOT a sequential Range compared to the previous one -
// start of current Range is larger than the end of last Range, do
- // not need to go back to the start of the IOBuffereReader.
+ // not need to go back to the start of the IOBufferReader.
// Otherwise, reset the IOBufferReader.
// if ( *start > prev_end )
*done_byte = prev_end;
diff --git a/src/proxy/hdrs/HdrHeap.cc b/src/proxy/hdrs/HdrHeap.cc
index 1aab23b93f..006d98c588 100644
--- a/src/proxy/hdrs/HdrHeap.cc
+++ b/src/proxy/hdrs/HdrHeap.cc
@@ -1029,7 +1029,7 @@ HdrHeap::attach_str_heap(char const *h_start, int h_len,
RefCountObj *h_ref_obj,
return true;
}
-// void HdrHeap::inhertit_string_heaps(const HdrHeap* inherit_from)
+// void HdrHeap::inherit_string_heaps(const HdrHeap* inherit_from)
//
// Inherits all of inherit_from's string heaps as read-only
// string heaps
diff --git a/src/proxy/hdrs/MIME.cc b/src/proxy/hdrs/MIME.cc
index 07ccd914c4..fc7fac251c 100644
--- a/src/proxy/hdrs/MIME.cc
+++ b/src/proxy/hdrs/MIME.cc
@@ -469,7 +469,7 @@ mime_hdr_set_accelerators_and_presence_bits(MIMEHdrImpl
*mh, MIMEField *field)
if (slot_id != MIME_SLOTID_NONE) {
if (mh->m_first_fblock.contains(field)) {
slot_num = (field - &(mh->m_first_fblock.m_field_slots[0]));
- // constains() assure that the field is in the block, and the calculated
+ // contains() assure that the field is in the block, and the calculated
// slot_num will be between 0 and 15, which seem valid.
// However, strangely, this function regards slot number 14 and 15 as
// unknown for some reason that is not clear. It might be a bug.
diff --git a/src/proxy/hdrs/URL.cc b/src/proxy/hdrs/URL.cc
index fa75ae25df..68d84b5d48 100644
--- a/src/proxy/hdrs/URL.cc
+++ b/src/proxy/hdrs/URL.cc
@@ -1771,7 +1771,7 @@ url_CryptoHash_get_general(const URLImpl *url,
CryptoContext &ctx, CryptoHash &h
strs[10] = nullptr;
strs[11] = "?";
- // Special case for the query paramters, allowing us to ignore them if
requested
+ // Special case for the query parameters, allowing us to ignore them if
requested
if (!ignore_query) {
strs[12] = url->m_ptr_query;
ends[12] = strs[12] + url->m_len_query;
diff --git a/src/proxy/hdrs/unit_tests/test_XPACK.cc
b/src/proxy/hdrs/unit_tests/test_XPACK.cc
index 4869509218..ee9c995089 100644
--- a/src/proxy/hdrs/unit_tests/test_XPACK.cc
+++ b/src/proxy/hdrs/unit_tests/test_XPACK.cc
@@ -109,7 +109,7 @@ TEST_CASE("XPACK_String", "[xpack]")
SECTION("Encoding")
{
- // FIXME Current encoder support only huffman conding.
+ // FIXME Current encoder support only huffman coding.
for (unsigned int i = 2; i < sizeof(string_test_case) /
sizeof(string_test_case[0]); i++) {
uint8_t buf[BUFSIZE_FOR_REGRESSION_TEST] = {0};
int64_t len = xpack_encode_string(buf, buf +
BUFSIZE_FOR_REGRESSION_TEST, string_test_case[i].raw_string,
diff --git a/src/proxy/http/HttpSM.cc b/src/proxy/http/HttpSM.cc
index a7b136f0ed..85d1b4caf4 100644
--- a/src/proxy/http/HttpSM.cc
+++ b/src/proxy/http/HttpSM.cc
@@ -8664,7 +8664,7 @@ HttpSM::redirect_request(const char *arg_redirect_url,
const int arg_redirect_le
t_state.hdr_info.server_request.m_target_cached = false;
clientUrl.scheme_set({scheme_str,
static_cast<std::string_view::size_type>(scheme_len)});
if (isRedirectUrlOriginForm) {
- // build the rest of the effictive URL: the authority part
+ // build the rest of the effective URL: the authority part
clientUrl.user_set(
{origUrl.m_url_impl->m_ptr_user,
static_cast<std::string_view::size_type>(origUrl.m_url_impl->m_len_user)});
clientUrl.password_set(
diff --git a/src/proxy/http/HttpTransact.cc b/src/proxy/http/HttpTransact.cc
index cd1049d1a6..a15b83cedd 100644
--- a/src/proxy/http/HttpTransact.cc
+++ b/src/proxy/http/HttpTransact.cc
@@ -1297,7 +1297,7 @@ HttpTransact::handle_upgrade_request(State *s)
HTTPHdr &request = s->hdr_info.client_request;
s->method = request.method_get_wksidx();
- // Quickest way to determine that this is defintely not an upgrade.
+ // Quickest way to determine that this is definitely not an upgrade.
/* RFC 6455 The method of the request MUST be GET, and the HTTP version MUST
be at least 1.1. */
if (!s->hdr_info.client_request.presence(MIME_PRESENCE_UPGRADE) ||
@@ -4447,7 +4447,7 @@
HttpTransact::handle_cache_operation_on_forward_server_response(State *s)
// No need to worry about If-Range headers because the request isn't
conditional
if (s->hdr_info.client_request.presence(MIME_PRESENCE_RANGE)) {
s->state_machine->do_range_setup_if_necessary();
- // Check client request range header if we cached a stealed
content with cacheable=false
+ // Check client request range header if we cached a stolen content
with cacheable=false
}
s->cache_info.action = CacheAction_t::SERVE_AND_DELETE;
s->next_action = StateMachineAction_t::SERVE_FROM_CACHE;
diff --git a/src/proxy/http/PreWarmManager.cc b/src/proxy/http/PreWarmManager.cc
index fafa7dd140..5fca803091 100644
--- a/src/proxy/http/PreWarmManager.cc
+++ b/src/proxy/http/PreWarmManager.cc
@@ -1179,7 +1179,7 @@ PreWarmManager::_register_stats(const
PreWarm::ParsedSNIConf &parsed_conf)
} else {
++stats_counter;
counters[j] = metric;
- Dbg(dbg_ctl_v_prewarm_init, "conter stat id=%d name=%s",
Metrics::Counter::lookup(name), name);
+ Dbg(dbg_ctl_v_prewarm_init, "counter stat id=%d name=%s",
Metrics::Counter::lookup(name), name);
}
}
diff --git a/src/proxy/http/remap/NextHopRoundRobin.cc
b/src/proxy/http/remap/NextHopRoundRobin.cc
index c04acbdaa5..744049e603 100644
--- a/src/proxy/http/remap/NextHopRoundRobin.cc
+++ b/src/proxy/http/remap/NextHopRoundRobin.cc
@@ -145,7 +145,7 @@ NextHopRoundRobin::findNextHop(TSHttpTxn txnp, void * /* ih
ATS_UNUSED */, time_
sm_id, cur_host->hostname.c_str(),
(intmax_t)cur_host->failedAt, cur_host->failCount.load(), fail_threshold);
parentUp = true;
}
- } else { // if not available, check to see if it can be retried. If so,
set the retry flag and temporairly mark it as
+ } else { // if not available, check to see if it can be retried. If so,
set the retry flag and temporarily mark it as
// available.
_now == 0 ? _now = time(nullptr) : _now = now;
if (((result->wrap_around) || (cur_host->failedAt + retry_time) < _now)
&& host_stat == TS_HOST_STATUS_UP) {
diff --git a/src/proxy/http/remap/PluginFactory.cc
b/src/proxy/http/remap/PluginFactory.cc
index f5a0132c60..f68eebc697 100644
--- a/src/proxy/http/remap/PluginFactory.cc
+++ b/src/proxy/http/remap/PluginFactory.cc
@@ -305,7 +305,7 @@ PluginFactory::cleanup()
/**
* @brief Find a plugin by path from our linked plugin list by using plugin
effective (canonical) path
*
- * @param path effective (caninical) path
+ * @param path effective (canonical) path
* @return plugin found or nullptr if not found
*/
PluginDso *
diff --git a/src/proxy/http/remap/UrlRewrite.cc
b/src/proxy/http/remap/UrlRewrite.cc
index 77ace34441..aa49bfde34 100644
--- a/src/proxy/http/remap/UrlRewrite.cc
+++ b/src/proxy/http/remap/UrlRewrite.cc
@@ -641,7 +641,7 @@ UrlRewrite::PerformACLFiltering(HttpTransact::State *s,
const url_mapping *const
/**
Determines if a redirect is to occur and if so, figures out what the
- redirect is. This was plaguiarized from UrlRewrite::Remap. redirect_url
+ redirect is. This was plagiarized from UrlRewrite::Remap. redirect_url
ought to point to the new, mapped URL when the function exits.
*/
mapping_type
diff --git a/src/proxy/http/remap/unit-tests/test_NextHopConsistentHash.cc
b/src/proxy/http/remap/unit-tests/test_NextHopConsistentHash.cc
index 5e582b9306..129fac3bd2 100644
--- a/src/proxy/http/remap/unit-tests/test_NextHopConsistentHash.cc
+++ b/src/proxy/http/remap/unit-tests/test_NextHopConsistentHash.cc
@@ -48,7 +48,7 @@ SCENARIO("Testing NextHopConsistentHash class, using policy
'consistent_hash'",
GIVEN("Loading the consistent-hash-tests.yaml config for 'consistent_hash'
tests.")
{
- // load the configuration strtegies.
+ // load the configuration strategies.
NextHopStrategyFactory nhf(TS_SRC_DIR
"/consistent-hash-tests.yaml");
NextHopSelectionStrategy *const strategy =
nhf.strategyInstance("consistent-hash-1");
diff --git a/src/proxy/http/unit_tests/test_HttpTransact.cc
b/src/proxy/http/unit_tests/test_HttpTransact.cc
index e4029643dc..fdad3ae46e 100644
--- a/src/proxy/http/unit_tests/test_HttpTransact.cc
+++ b/src/proxy/http/unit_tests/test_HttpTransact.cc
@@ -121,7 +121,7 @@ TEST_CASE("HttpTransact", "[http]")
CHECK(field->has_dups() == false);
}
- SECTION("Have comon headers")
+ SECTION("Have common headers")
{
HTTPHdr hdr1;
HTTPHdr hdr2;
diff --git a/src/proxy/http2/Http2CommonSession.cc
b/src/proxy/http2/Http2CommonSession.cc
index b05fcfb35c..a294f1665c 100644
--- a/src/proxy/http2/Http2CommonSession.cc
+++ b/src/proxy/http2/Http2CommonSession.cc
@@ -224,7 +224,7 @@ Http2CommonSession::state_read_connection_preface(int
event, void *edata)
// XXX start the write VIO ...
- // If we have unconsumed data, start tranferring frames now.
+ // If we have unconsumed data, start transferring frames now.
if (this->_read_buffer_reader->is_read_avail_more_than(0)) {
return this->get_proxy_session()->handleEvent(VC_EVENT_READ_READY, vio);
}
diff --git a/src/proxy/http2/Http2ConnectionState.cc
b/src/proxy/http2/Http2ConnectionState.cc
index 4b38579574..9a3ebcfbea 100644
--- a/src/proxy/http2/Http2ConnectionState.cc
+++ b/src/proxy/http2/Http2ConnectionState.cc
@@ -478,7 +478,7 @@ Http2ConnectionState::rcv_headers_frame(const Http2Frame
&frame)
this->acknowledged_local_settings.get(HTTP2_SETTINGS_HEADER_TABLE_SIZE));
// If this was an outbound connection and the state was already closed,
just clear the
- // headers after processing. We just processed the heaer blocks to keep
the dynamic table in
+ // headers after processing. We just processed the header blocks to keep
the dynamic table in
// sync with peer to avoid future HPACK compression errors
if (reset_header_after_decoding) {
stream->reset_receive_headers();
@@ -1300,7 +1300,7 @@ Http2ConnectionState::init(Http2CommonSession *ssn)
// Generally speaking, before enforcing h2 settings we wait upon the client
to
// acknowledge the settings via a SETTINGS ACK. This is important for things
- // like correctly handling windows. Howerver, the RFC default values for
+ // like correctly handling windows. However, the RFC default values for
// MAX_CONCURRENT_STREAMS and MAX_HEADER_SIZE are infinite, which is not
// practical and a client can run ATS out of resources by simply opening up
// more streams than is reasonable. We enforce our configured defaults before
@@ -1693,7 +1693,7 @@ Http2ConnectionState::create_initiating_stream(Http2Error
&error)
// If this is an outbound client stream, must check against the peer's
max_concurrent
if (session->is_outbound()) {
check_max_concurrent_limit =
peer_settings.get(HTTP2_SETTINGS_MAX_CONCURRENT_STREAMS);
- } else { // Inbound client streamm check against our own max_connecurent
limits
+ } else { // Inbound client stream check against our own max_connecurent
limits
check_max_concurrent_limit =
local_settings.get(HTTP2_SETTINGS_MAX_CONCURRENT_STREAMS);
}
ink_release_assert(check_max_concurrent_limit != 0);
@@ -1875,7 +1875,7 @@ Http2ConnectionState::create_stream(Http2StreamId new_id,
Http2Error &error)
// Set incomplete header timeout
// Client should send END_HEADERS flag within the
http2.incomplete_header_timeout_in.
- // The active timeout of this stream will be reset by HttpSM with
http.transction_active_timeout_in when a HTTP TXN is started
+ // The active timeout of this stream will be reset by HttpSM with
http.transaction_active_timeout_in when a HTTP TXN is started
new_stream->set_active_timeout(HRTIME_SECONDS(Http2::incomplete_header_timeout_in));
// Clear the session timeout. Let the transaction timeouts reign
diff --git a/src/proxy/http3/Http3Session.cc b/src/proxy/http3/Http3Session.cc
index a68f61cf00..0d33c9e63d 100644
--- a/src/proxy/http3/Http3Session.cc
+++ b/src/proxy/http3/Http3Session.cc
@@ -39,7 +39,7 @@ HQSession::HQSession(NetVConnection *vc) : ProxySession(vc)
HQSession::~HQSession()
{
- // Transactions should be deleted first before HQSesson gets deleted.
+ // Transactions should be deleted first before HQSession gets deleted.
ink_assert(this->_transaction_list.head == nullptr);
}
diff --git a/src/proxy/http3/Http3Transaction.cc
b/src/proxy/http3/Http3Transaction.cc
index 3b798c8b13..2fc57e61a0 100644
--- a/src/proxy/http3/Http3Transaction.cc
+++ b/src/proxy/http3/Http3Transaction.cc
@@ -588,7 +588,7 @@ Http3Transaction::_process_read_vio()
auto error =
this->_frame_dispatcher.on_read_ready(this->_info.adapter.stream().id(),
Http3StreamType::UNKNOWN,
*this->_info.read_vio->get_reader(), nread);
if (error && error->cls != Http3ErrorClass::UNDEFINED) {
- Http3TransDebug("Error occured while processing read vio: %hu, %s",
error->get_code(), error->msg);
+ Http3TransDebug("Error occurred while processing read vio: %hu, %s",
error->get_code(), error->msg);
return 0;
}
this->_info.read_vio->ndone += nread;
@@ -882,7 +882,7 @@ Http09Transaction::_process_write_vio()
// NOTE: When Chunked Transfer Coding is supported, check ChunkedState of
ChunkedHandler
// is ChunkedState::READ_DONE and set FIN flag
if (this->_write_vio.ntodo() == 0) {
- // The size of respons to client
+ // The size of response to client
this->_info.write_vio->done();
}
diff --git a/src/proxy/logging/LogAccess.cc b/src/proxy/logging/LogAccess.cc
index 9c2ffb79d6..d865d1444e 100644
--- a/src/proxy/logging/LogAccess.cc
+++ b/src/proxy/logging/LogAccess.cc
@@ -51,7 +51,7 @@ namespace
{
DbgCtl dbg_ctl_log_escape{"log-escape"};
DbgCtl dbg_ctl_log_resolve{"log-resolve"};
-DbgCtl dbg_ctl_log_unmarshal_orun{"log-unmarshal-orun"}; // Overrrun of
unmarshaling destination buffer.
+DbgCtl dbg_ctl_log_unmarshal_orun{"log-unmarshal-orun"}; // Overrun of
unmarshaling destination buffer.
DbgCtl dbg_ctl_log_unmarshal_data{"log-unmarshal-data"}; // Error in txn data
when unmarshalling.
} // end anonymous namespace
@@ -1224,7 +1224,7 @@ LogAccess::unmarshal_ip_to_str(char **buf, char *dest,
int len)
LogAccess::unmarshal_ip_to_hex
Retrieve the int pointed at by the buffer and treat as an IP
- address. Convert to a string in byte oriented hexadeciaml and
+ address. Convert to a string in byte oriented hexadecimal and
return the string. Advance the buffer pointer.
-------------------------------------------------------------------------*/
diff --git a/src/proxy/logging/LogField.cc b/src/proxy/logging/LogField.cc
index 2c8378ef48..4f8b47cdf9 100644
--- a/src/proxy/logging/LogField.cc
+++ b/src/proxy/logging/LogField.cc
@@ -129,7 +129,7 @@ LogSlice::toStrOffset(int strlen, int *offset)
{
int i, j, len;
- // letf index
+ // left index
if (m_start >= 0) {
i = m_start;
} else {
@@ -777,7 +777,7 @@ LogField::display(FILE *fd)
LogField::operator==
This operator does only care of the name and m_symbol, may need
- do check on others layter.
+ do check on others later.
-------------------------------------------------------------------------*/
bool
LogField::operator==(LogField &rhs)
diff --git a/src/proxy/logging/LogFile.cc b/src/proxy/logging/LogFile.cc
index 9252136092..cbc2c4b910 100644
--- a/src/proxy/logging/LogFile.cc
+++ b/src/proxy/logging/LogFile.cc
@@ -461,7 +461,7 @@ LogFile::preproc_and_try_delete(LogBuffer *lb)
// Ok, now we need to write the binary buffer to the file, and we
// can do so in one swift write. The question is, do we write the
// LogBufferHeader with each buffer or not? The answer is yes.
- // Even though we'll be puttint down redundant data (things that
+ // Even though we'll be putting down redundant data (things that
// don't change between buffers), it's not worth trying to separate
// out the buffer-dependent data from the buffer-independent data.
//
diff --git a/src/proxy/logging/LogFilter.cc b/src/proxy/logging/LogFilter.cc
index fcfe41c4e3..74fbc377e7 100644
--- a/src/proxy/logging/LogFilter.cc
+++ b/src/proxy/logging/LogFilter.cc
@@ -465,7 +465,7 @@ LogFilterString::operator==(LogFilterString &rhs)
LogFilterString::toss_this_entry
For strings, we need to marshal the given string into a buffer so that we
- can compare it with the filter value. Most strings are snall, so we'll
+ can compare it with the filter value. Most strings are small, so we'll
only allocate space dynamically if the marshal_len is very large (eg,
URL).
diff --git a/src/proxy/logging/LogFormat.cc b/src/proxy/logging/LogFormat.cc
index feee9696e4..1864c0189b 100644
--- a/src/proxy/logging/LogFormat.cc
+++ b/src/proxy/logging/LogFormat.cc
@@ -363,7 +363,7 @@ LogFormat::format_from_specification(char *spec, char
**file_name, char **file_h
format_name = token;
//
- // Next should be the printf-stlye format symbol string
+ // Next should be the printf-style format symbol string
//
token = tok.getNext();
if (token == nullptr) {
diff --git a/src/proxy/logging/LogObject.cc b/src/proxy/logging/LogObject.cc
index 997e394025..03e1316a17 100644
--- a/src/proxy/logging/LogObject.cc
+++ b/src/proxy/logging/LogObject.cc
@@ -892,7 +892,7 @@ TextLogObject::write(const char *format, ...)
This routine will take a format string and va_list and write it as a
single entry (line) in the text file. If timestamps are on, then the
- entry will be preceeded by a timestamp.
+ entry will be preceded by a timestamp.
Returns ReturnCodeFlags.
-------------------------------------------------------------------------*/
diff --git a/src/proxy/logging/LogUtils.cc b/src/proxy/logging/LogUtils.cc
index e88a2002b3..7106b2cb3f 100644
--- a/src/proxy/logging/LogUtils.cc
+++ b/src/proxy/logging/LogUtils.cc
@@ -533,7 +533,7 @@ unmarshalMimeHdr(char **buf, char *dest, int destLength)
if ((pairSeparatorFallback > pairEndFallback) and ((pairSeparatorFallback
+ FULL_ELLIPSES.size()) < size_t(destLength))) {
// In the report, we can show the existence of the last partial
tag/value pair, and maybe part of the value. If we only
- // show part of the value, we want to end it with an elipsis, to make it
clear it's not complete.
+ // show part of the value, we want to end it with an ellipsis, to make
it clear it's not complete.
bw.discard(FULL_ELLIPSES.size());
bw.write(FULL_ELLIPSES);
diff --git a/src/traffic_ctl/CtrlPrinters.cc b/src/traffic_ctl/CtrlPrinters.cc
index 8e82fe77a9..f055c4ba7e 100644
--- a/src/traffic_ctl/CtrlPrinters.cc
+++ b/src/traffic_ctl/CtrlPrinters.cc
@@ -77,7 +77,7 @@ BasePrinter::write_output(shared::rpc::JSONRPCResponse const
&response)
if (!response.result.IsNull()) {
// on you!
- // Found convinient to let the derived class deal with the specifics.
+ // Found convenient to let the derived class deal with the specifics.
write_output(response.result);
}
}
diff --git a/src/traffic_server/traffic_server.cc
b/src/traffic_server/traffic_server.cc
index 10945ecf24..43726e5d8c 100644
--- a/src/traffic_server/traffic_server.cc
+++ b/src/traffic_server/traffic_server.cc
@@ -519,7 +519,7 @@ private:
Metrics::Gauge::AtomicType *memory_rss;
};
-/** Gate the emission of the "Traffic Server is fuly initialized" log message.
+/** Gate the emission of the "Traffic Server is fully initialized" log message.
*
* This message is intended to be helpful to users who want to know that
* Traffic Server is not just running but has become fully initialized and is
@@ -2015,7 +2015,7 @@ main(int /* argc ATS_UNUSED */, const char **argv)
metrics[id].store(time(nullptr));
id = Metrics::Gauge::create("proxy.process.proxy.start_time");
metrics[id].store(time(nullptr));
- // These all gets initialied to 0
+ // These all gets initialized to 0
Metrics::Gauge::create("proxy.process.proxy.reconfigure_required");
Metrics::Gauge::create("proxy.process.proxy.restart_required");
Metrics::Gauge::create("proxy.process.proxy.draining");
diff --git a/src/tscore/unit_tests/test_CryptoHash.cc
b/src/tscore/unit_tests/test_CryptoHash.cc
index 808a7f7660..29824f5d78 100644
--- a/src/tscore/unit_tests/test_CryptoHash.cc
+++ b/src/tscore/unit_tests/test_CryptoHash.cc
@@ -28,7 +28,7 @@
#include "tscore/CryptoHash.h"
#include <catch2/catch_test_macros.hpp>
-TEST_CASE("CrypoHash", "[libts][CrypoHash]")
+TEST_CASE("CryptoHash", "[libts][CryptoHash]")
{
CryptoHash hash;
ts::CryptoContext ctx;
diff --git a/src/tscore/unit_tests/test_IntrusivePtr.cc
b/src/tscore/unit_tests/test_IntrusivePtr.cc
index 9a90b3a350..016a2d5c99 100644
--- a/src/tscore/unit_tests/test_IntrusivePtr.cc
+++ b/src/tscore/unit_tests/test_IntrusivePtr.cc
@@ -89,7 +89,7 @@ TEST_CASE("IntrusivePtr", "[libts][IntrusivePtr]")
REQUIRE(!p3 == false);
// This is a compile check to make sure IntrusivePtr can be used with
private inheritance
- // of ts::InstrusivePtrCounter if IntrusivePtr is declared a friend.
+ // of ts::IntrusivePtrCounter if IntrusivePtr is declared a friend.
ts::IntrusivePtr<Obscure> op{new Obscure};
op->_text.assign("Text");
}
diff --git a/src/tscore/unit_tests/test_SnowflakeID.cc
b/src/tscore/unit_tests/test_SnowflakeID.cc
index a9a10e5949..88c0c0f4cf 100644
--- a/src/tscore/unit_tests/test_SnowflakeID.cc
+++ b/src/tscore/unit_tests/test_SnowflakeID.cc
@@ -40,7 +40,7 @@ namespace
// These unions help us extract the fields in a platform-independent way,
// namely regardless of endianness. They obviously will need to be updated if
// the production versions of these structs change, but the tests will fail if
-// that happens allerting the developer to maintain these.
+// that happens alerting the developer to maintain these.
union SnowflakeIDValue {
uint64_t value;
struct {
diff --git a/src/tscpp/api/InterceptPlugin.cc b/src/tscpp/api/InterceptPlugin.cc
index 7b52acfc4a..90ceef01f9 100644
--- a/src/tscpp/api/InterceptPlugin.cc
+++ b/src/tscpp/api/InterceptPlugin.cc
@@ -309,7 +309,7 @@ InterceptPlugin::handleEvent(int abstract_event, void
*edata)
LOG_ERROR("Error while reading request!");
// fallthrough
- case TS_EVENT_VCONN_READ_COMPLETE: // fall throughs intentional
+ case TS_EVENT_VCONN_READ_COMPLETE:
case TS_EVENT_VCONN_WRITE_COMPLETE:
case TS_EVENT_VCONN_EOS:
case TS_EVENT_ERROR: // erroring out, nothing more to do