You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2018/06/06 08:07:17 UTC
[trafficserver] branch 8.0.x updated: example: Cleans up spelling
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/8.0.x by this push:
new 150a0b4 example: Cleans up spelling
150a0b4 is described below
commit 150a0b4dd38ac6cd468d820fc9b3268b151e0b71
Author: Randall Meyer <ra...@yahoo.com>
AuthorDate: Thu May 31 12:39:21 2018 -0700
example: Cleans up spelling
(cherry picked from commit e48b4e8c99cf55b6a64baa616c70e570d9bcb795)
---
example/add_header/readme.txt | 2 +-
example/cppapi/async_http_fetch/AsyncHttpFetch.cc | 2 +-
example/cppapi/boom/boom.cc | 2 +-
example/cppapi/clientrequest/ClientRequest.cc | 4 ++--
example/cppapi/gzip_transformation/GzipTransformationPlugin.cc | 10 +++++-----
example/cppapi/logger_example/LoggerExample.cc | 4 ++--
example/cppapi/serverresponse/ServerResponse.cc | 2 +-
example/cppapi/stat_example/StatExample.cc | 2 +-
example/disable_http2/disable_http2.cc | 2 +-
example/intercept/intercept.cc | 2 +-
example/output_header/output_header.c | 2 +-
example/output_header/readme | 2 +-
example/passthru/passthru.cc | 2 +-
example/protocol/TxnSM.c | 4 ++--
example/remap/remap.cc | 2 +-
example/response_header_1/response_header_1.c | 2 +-
example/secure_link/readme.txt | 2 +-
example/ssl_sni/ssl_sni.cc | 2 +-
example/thread_pool/psi.c | 2 +-
example/version/version.c | 4 ++--
20 files changed, 28 insertions(+), 28 deletions(-)
diff --git a/example/add_header/readme.txt b/example/add_header/readme.txt
index 39e6f2d..dd8e77b 100644
--- a/example/add_header/readme.txt
+++ b/example/add_header/readme.txt
@@ -40,7 +40,7 @@ HTTP request, using the following functions:
TSMimeHdrFieldGet
TSMimeHdrFieldCreate
TSMimeHdrFieldCopy
- TSMimeHdrFieldAPpend
+ TSMimeHdrFieldAppend
TSMimeHdrFieldNext
When add_header is done, it uses
diff --git a/example/cppapi/async_http_fetch/AsyncHttpFetch.cc b/example/cppapi/async_http_fetch/AsyncHttpFetch.cc
index 3f90ff3..b615a7c 100644
--- a/example/cppapi/async_http_fetch/AsyncHttpFetch.cc
+++ b/example/cppapi/async_http_fetch/AsyncHttpFetch.cc
@@ -173,7 +173,7 @@ private:
TS_DEBUG(TAG, "Response version is [%s], status code %d, reason phrase [%s]",
HTTP_VERSION_STRINGS[response.getVersion()].c_str(), response.getStatusCode(), response.getReasonPhrase().c_str());
- TS_DEBUG(TAG, "Reponse Headers: \n%s\n", response.getHeaders().str().c_str());
+ TS_DEBUG(TAG, "Response Headers: \n%s\n", response.getHeaders().str().c_str());
const void *body;
size_t body_size;
diff --git a/example/cppapi/boom/boom.cc b/example/cppapi/boom/boom.cc
index 15a3342..da790dd 100644
--- a/example/cppapi/boom/boom.cc
+++ b/example/cppapi/boom/boom.cc
@@ -43,7 +43,7 @@
* in your error page folder with that error code, for example 404 would expect
* a page called 404.html. Error codes will try to apply the more specific rule first
* for example if you have a 404 and 4xx, the 404 will attempt to match first and would
- * serve the 404.html page instead of the 4xx.html page. Similiarly, a 403 would
+ * serve the 404.html page instead of the 4xx.html page. Similarly, a 403 would
* serve the 4xx.html page.
*
* EXAMPLE:
diff --git a/example/cppapi/clientrequest/ClientRequest.cc b/example/cppapi/clientrequest/ClientRequest.cc
index 00bc1ac..a608e36 100644
--- a/example/cppapi/clientrequest/ClientRequest.cc
+++ b/example/cppapi/clientrequest/ClientRequest.cc
@@ -107,11 +107,11 @@ public:
/*
* These will output:
- * Joining on a non-existant header gives:
+ * Joining on a non-existent header gives:
* Joining the accept encoding header gives: gzip,identity,my_special_format
* Joining the accept encoding header with space gives: gzip identity my_special_format
*/
- cout << "Joining on a non-existant header gives: " << client_request_headers.values("i_dont_exist") << endl;
+ cout << "Joining on a non-existent header gives: " << client_request_headers.values("i_dont_exist") << endl;
cout << "Joining the accept encoding header gives: " << client_request_headers.values("accept-encoding") << endl;
cout << "Joining the accept encoding header with space gives: " << client_request_headers.values("accept-encoding", ' ')
<< endl;
diff --git a/example/cppapi/gzip_transformation/GzipTransformationPlugin.cc b/example/cppapi/gzip_transformation/GzipTransformationPlugin.cc
index ad6d043..6a52b4b 100644
--- a/example/cppapi/gzip_transformation/GzipTransformationPlugin.cc
+++ b/example/cppapi/gzip_transformation/GzipTransformationPlugin.cc
@@ -39,7 +39,7 @@ GlobalPlugin *plugin;
/*
* Note, the GzipInflateTransformation and GzipDeflateTransformation do not
- * check headers to determine if the content was gziped and it doesn't check
+ * check headers to determine if the content was gzipped and it doesn't check
* headers to make sure the client supports gzip, this is entirely up to the plugin
* to verify that the content-encoding is gzipped, it's also up to the client
* to make sure the user's accept-encoding supports gzip.
@@ -145,7 +145,7 @@ public:
handleSendRequestHeaders(Transaction &transaction) override
{
// Since we can only decompress gzip we will change the accept encoding header
- // to gzip, even if the user cannot accept gziped content we will return to them
+ // to gzip, even if the user cannot accept gzipped content we will return to them
// uncompressed content in that case since we have to be able to transform the content.
string original_accept_encoding = transaction.getServerRequest().getHeaders().values("Accept-Encoding");
@@ -163,14 +163,14 @@ public:
// We're guaranteed to have been returned either gzipped content or Identity.
if (Helpers::serverReturnedGzip(transaction)) {
- // If the returned content was gziped we will inflate it so we can transform it.
- TS_DEBUG(TAG, "Creating Inflate Transformation because the server returned gziped content");
+ // If the returned content was gzipped we will inflate it so we can transform it.
+ TS_DEBUG(TAG, "Creating Inflate Transformation because the server returned gzipped content");
transaction.addPlugin(new GzipInflateTransformation(transaction, TransformationPlugin::RESPONSE_TRANSFORMATION));
}
transaction.addPlugin(new SomeTransformationPlugin(transaction));
- // Even if the server didn't return gziped content, if the user supports it we will gzip it.
+ // Even if the server didn't return gzipped content, if the user supports it we will gzip it.
if (Helpers::clientAcceptsGzip(transaction)) {
TS_DEBUG(TAG, "The client supports gzip so we will deflate the content on the way out.");
transaction.addPlugin(new GzipDeflateTransformation(transaction, TransformationPlugin::RESPONSE_TRANSFORMATION));
diff --git a/example/cppapi/logger_example/LoggerExample.cc b/example/cppapi/logger_example/LoggerExample.cc
index 71d29b1..84a6d6b 100644
--- a/example/cppapi/logger_example/LoggerExample.cc
+++ b/example/cppapi/logger_example/LoggerExample.cc
@@ -85,7 +85,7 @@ public:
}
}
- // One drawback to usign the Traffic Server Text Loggers is that you're limited in the size of the log
+ // One drawback to using the Traffic Server Text Loggers is that you're limited in the size of the log
// lines, this limit is now set at 8kb for atscppapi, but this limit might be removed in the future.
LOG_INFO(log, "This message will be dropped (see error.log) because it's just too big: %s", big_buffer_14kb_);
@@ -115,7 +115,7 @@ TSPluginInit(int argc ATSCPPAPI_UNUSED, const char *argv[] ATSCPPAPI_UNUSED)
// The fourth argument is the initial logging level this can always be changed with log.setLogLevel().
// the default log level is LOG_LEVEL_INFO.
// The fifth argument is to enable log rolling, this is enabled by default.
- // The sixth argument is the freuqency in which we will roll the logs, 300 seconds is very low,
+ // The sixth argument is the frequency in which we will roll the logs, 300 seconds is very low,
// the default for this argument is 3600.
log.init("logger_example", true, true, Logger::LOG_LEVEL_DEBUG, true, 300);
diff --git a/example/cppapi/serverresponse/ServerResponse.cc b/example/cppapi/serverresponse/ServerResponse.cc
index b48f3ac..fcf175e 100644
--- a/example/cppapi/serverresponse/ServerResponse.cc
+++ b/example/cppapi/serverresponse/ServerResponse.cc
@@ -52,7 +52,7 @@ public:
// Give this user an error page and don't make a request to an origin.
cout << "Sending this request an error page" << endl;
transaction.error("This is the error response, but the response code is 500."
- "In this example no request was made to the orgin.");
+ "In this example no request was made to the origin.");
// HTTP/1.1 500 INKApi Error
} else {
transaction.resume();
diff --git a/example/cppapi/stat_example/StatExample.cc b/example/cppapi/stat_example/StatExample.cc
index 35010fe..587f3ff 100644
--- a/example/cppapi/stat_example/StatExample.cc
+++ b/example/cppapi/stat_example/StatExample.cc
@@ -44,7 +44,7 @@ GlobalPlugin *plugin;
/*
* This is a simple plugin that will increment a counter
- * everytime a request comes in.
+ * every time a request comes in.
*/
class GlobalHookPlugin : public GlobalPlugin
{
diff --git a/example/disable_http2/disable_http2.cc b/example/disable_http2/disable_http2.cc
index d21b107..4fd0fc5 100644
--- a/example/disable_http2/disable_http2.cc
+++ b/example/disable_http2/disable_http2.cc
@@ -67,7 +67,7 @@ CB_NetAcceptReady(TSCont contp, TSEvent event, void *cb_data)
{
switch (event) {
case TS_EVENT_LIFECYCLE_PORTS_READY:
- // The accept objecs are all created and ready at this point. We
+ // The accept objects are all created and ready at this point. We
// can now iterate over them.
for (int i = 0, totalNA = TSAcceptorCount(); i < totalNA; ++i) {
TSAcceptor netaccept = TSAcceptorGetbyID(i);
diff --git a/example/intercept/intercept.cc b/example/intercept/intercept.cc
index cf9c2b8..8369667 100644
--- a/example/intercept/intercept.cc
+++ b/example/intercept/intercept.cc
@@ -517,7 +517,7 @@ InterceptTxnHook(TSCont contp, TSEvent event, void *edata)
if (InterceptShouldInterceptRequest(arg.txn)) {
TSCont c = InterceptContCreate(InterceptInterceptionHook, TSMutexCreate(), arg.txn);
- VDEBUG("intercepting orgin server request for txn=%p, cont=%p", arg.txn, c);
+ VDEBUG("intercepting origin server request for txn=%p, cont=%p", arg.txn, c);
TSHttpTxnServerIntercept(c, arg.txn);
}
diff --git a/example/output_header/output_header.c b/example/output_header/output_header.c
index 11bf84d..eb66aae 100644
--- a/example/output_header/output_header.c
+++ b/example/output_header/output_header.c
@@ -24,7 +24,7 @@
/* output_header.c: a plugin prints out the client request header
* fields to stdout
* A sample internal plugin to use the HdrPrint functions and the TSIOBuffers
- * that the functions untilize.
+ * that the functions utilize.
*
* The plugin simply prints all the incoming request headers
*
diff --git a/example/output_header/readme b/example/output_header/readme
index 7967fdd..91f4b61 100644
--- a/example/output_header/readme
+++ b/example/output_header/readme
@@ -1,5 +1,5 @@
A sample internal plugin to use the HdrPrint functions and the TSIOBuffers
-that the functions untilize.
+that the functions utilize.
The plugin simply prints all the incoming request headers
diff --git a/example/passthru/passthru.cc b/example/passthru/passthru.cc
index 2936d76..09f386f 100644
--- a/example/passthru/passthru.cc
+++ b/example/passthru/passthru.cc
@@ -328,7 +328,7 @@ TSPluginInit(int /* argc */, const char * /* argv */ [])
status = PassthruListen();
TSReleaseAssert(status == TS_SUCCESS);
- // Now that succeded, we can register.
+ // Now that succeeded, we can register.
status = TSPluginRegister(&info);
TSReleaseAssert(status == TS_SUCCESS);
}
diff --git a/example/protocol/TxnSM.c b/example/protocol/TxnSM.c
index 80f72df..b61c746 100644
--- a/example/protocol/TxnSM.c
+++ b/example/protocol/TxnSM.c
@@ -692,7 +692,7 @@ state_write_to_cache(TSCont contp, TSEvent event, TSVIO vio)
case TS_EVENT_VCONN_WRITE_COMPLETE:
TSDebug(PLUGIN_NAME, "nbytes %" PRId64 ", ndone %" PRId64, TSVIONBytesGet(vio), TSVIONDoneGet(vio));
- /* Since the first write is through TSVConnWrite, which aleady consume
+ /* Since the first write is through TSVConnWrite, which already consume
the data in cache_buffer_reader, don't consume it again. */
if (txn_sm->q_cache_response_length > 0 && txn_sm->q_block_bytes_read > 0) {
TSIOBufferReaderConsume(txn_sm->q_cache_response_buffer_reader, txn_sm->q_block_bytes_read);
@@ -709,7 +709,7 @@ state_write_to_cache(TSCont contp, TSEvent event, TSVIO vio)
if (txn_sm->q_cache_response_length >= txn_sm->q_server_response_length) {
/* Write is complete, close the cache_vc. */
- TSDebug(PLUGIN_NAME, "close cache_vc, cache_response_length is %d, server_response_lenght is %d",
+ TSDebug(PLUGIN_NAME, "close cache_vc, cache_response_length is %d, server_response_length is %d",
txn_sm->q_cache_response_length, txn_sm->q_server_response_length);
TSVConnClose(txn_sm->q_cache_vc);
txn_sm->q_cache_vc = NULL;
diff --git a/example/remap/remap.cc b/example/remap/remap.cc
index 77b09d8..302a261 100644
--- a/example/remap/remap.cc
+++ b/example/remap/remap.cc
@@ -276,7 +276,7 @@ TSRemapDoRemap(void *ih, TSHttpTxn rh, TSRemapRequestInfo *rri)
TSHttpTxnArgSet((TSHttpTxn)rh, arg_index, (void *)_processing_counter); // save counter
}
// How to cancel request processing and return error message to the client
- // We wiil do it every other request
+ // We will do it every other request
if (_processing_counter & 1) {
char *tmp = (char *)TSmalloc(256);
static int my_local_counter = 0;
diff --git a/example/response_header_1/response_header_1.c b/example/response_header_1/response_header_1.c
index f17e654..6da077c 100644
--- a/example/response_header_1/response_header_1.c
+++ b/example/response_header_1/response_header_1.c
@@ -173,7 +173,7 @@ modify_header(TSHttpTxn txnp)
* in the in-process response in order to have the cached response
* become invalid.
*/
- TSMimeHdrFieldCreate(resp_bufp, resp_loc, &new_field_loc); /* Probaby should check for errrors */
+ TSMimeHdrFieldCreate(resp_bufp, resp_loc, &new_field_loc); /* Probably should check for errors */
/* mimehdr1_name : TSstrdup( "x-num-served-from-cache" ) ; */
diff --git a/example/secure_link/readme.txt b/example/secure_link/readme.txt
index a0c1ecb..f95425a 100644
--- a/example/secure_link/readme.txt
+++ b/example/secure_link/readme.txt
@@ -6,7 +6,7 @@ The plugin can be used in the plugins chain in remap.config and it expects two @
1. secret - the word, which is known only to the application that generated link
and Traffic Server.
2. policy - if set to 'strict' and checksums not match or expire value
- lower than current time the client will receive 403 Frobidden response.
+ lower than current time the client will receive 403 Forbidden response.
Used for debugging.
For example request
diff --git a/example/ssl_sni/ssl_sni.cc b/example/ssl_sni/ssl_sni.cc
index 852a989..559d76d 100644
--- a/example/ssl_sni/ssl_sni.cc
+++ b/example/ssl_sni/ssl_sni.cc
@@ -70,7 +70,7 @@ Load_Configuration()
}
/**
- Somewhat nonscensically exercise some scenarios of proxying
+ Somewhat nonsensically exercise some scenarios of proxying
and blind tunneling from the SNI callback plugin
Case 1: If the servername ends in facebook.com, blind tunnel
diff --git a/example/thread_pool/psi.c b/example/thread_pool/psi.c
index 80e369c..6b1a986 100644
--- a/example/thread_pool/psi.c
+++ b/example/thread_pool/psi.c
@@ -696,7 +696,7 @@ dump_psi(TSCont contp)
data = TSContDataGet(contp);
TSAssert(data->magic == MAGIC_ALIVE);
- /* If script exec succeded, copy its output to the downstream vconn */
+ /* If script exec succeeded, copy its output to the downstream vconn */
if (data->psi_success == 1) {
psi_output_len = TSIOBufferReaderAvail(data->psi_reader);
diff --git a/example/version/version.c b/example/version/version.c
index 525c241..7e2baf1 100644
--- a/example/version/version.c
+++ b/example/version/version.c
@@ -35,7 +35,7 @@ TSPluginInit(int argc, const char *argv[])
// Get the version:
const char *ts_version = TSTrafficServerVersionGet();
if (!ts_version) {
- TSError("[%s] Can't get Traffic Server verion.", PLUGIN_NAME);
+ TSError("[%s] Can't get Traffic Server version.", PLUGIN_NAME);
return;
}
@@ -45,7 +45,7 @@ TSPluginInit(int argc, const char *argv[])
int patch_ts_version = 0;
if (sscanf(ts_version, "%d.%d.%d", &major_ts_version, &minor_ts_version, &patch_ts_version) != 3) {
- TSError("[%s] Can't extract verions.", PLUGIN_NAME);
+ TSError("[%s] Can't extract versions.", PLUGIN_NAME);
return;
}
--
To stop receiving notification emails like this one, please contact
zwoop@apache.org.