Browse files

TS-2737: Rename rfc5861 plugin to stale_while_revalidate

  • Loading branch information...
1 parent 78aa134 commit e49d8477385123d186ecbf96737d79fc6ef1234d @PSUdaemon PSUdaemon committed May 22, 2014
View
2 CHANGES
@@ -1,6 +1,8 @@
-*- coding: utf-8 -*-
Changes with Apache Traffic Server 5.0.0
+ *) [TS-2737] Rename rfc5861 plugin to stale_while_revalidate.
+
*) [TS-2400] Our default SSL cipher-suite advocates speed over security
*) [TS-2818] TSHttpTxnServerAddrSet() doesn't update the server port
View
2 NOTICE
@@ -39,7 +39,7 @@ Copyright (C) 2011 Google Inc.
~~~
-rfc5861 Plugin developed by OmniTI on behalf of Oregon Health & Science University
+stale_while_revalidate Plugin developed by OmniTI on behalf of Oregon Health & Science University
Copyright (C) 2012 Oregon Health & Science University
~~~
View
2 configure.ac
@@ -1919,8 +1919,8 @@ AC_CONFIG_FILES([
plugins/experimental/hipes/Makefile
plugins/experimental/metalink/Makefile
plugins/experimental/remap_stats/Makefile
- plugins/experimental/rfc5861/Makefile
plugins/experimental/s3_auth/Makefile
+ plugins/experimental/stale_while_revalidate/Makefile
plugins/experimental/ts_lua/Makefile
plugins/experimental/url_sig/Makefile
plugins/experimental/xdebug/Makefile
View
2 plugins/experimental/Makefile.am
@@ -30,8 +30,8 @@ SUBDIRS = \
hipes \
metalink \
remap_stats \
- rfc5861 \
s3_auth \
+ stale_while_revalidate \
ts_lua \
url_sig \
xdebug
View
6 plugins/experimental/rfc5861/Makefile.am → ...mental/stale_while_revalidate/Makefile.am
@@ -16,6 +16,6 @@
include $(top_srcdir)/build/plugins.mk
-pkglib_LTLIBRARIES = rfc5861.la
-rfc5861_la_SOURCES = rfc5861.c
-rfc5861_la_LDFLAGS = $(TS_PLUGIN_LDFLAGS)
+pkglib_LTLIBRARIES = stale_while_revalidate.la
+stale_while_revalidate_la_SOURCES = stale_while_revalidate.c
+stale_while_revalidate_la_LDFLAGS = $(TS_PLUGIN_LDFLAGS)
View
7 plugins/experimental/rfc5861/Makefile.tsxs → ...ntal/stale_while_revalidate/Makefile.tsxs
@@ -14,13 +14,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+PLUGIN=stale_while_revalidate
TSXS?=tsxs
-all: rfc5861.c
- $(TSXS) -v -o rfc5861.so $?
+all: ${PLUGIN}.c
+ $(TSXS) -v -o ${PLUGIN}.so $?
install:
- $(TSXS) -i -o rfc5861.so
+ $(TSXS) -i -o ${PLUGIN}.so
clean:
rm -f *.lo *.so
View
2 plugins/experimental/rfc5861/README → ...xperimental/stale_while_revalidate/README
@@ -8,7 +8,7 @@ Make sure that 'tsxs' is in your path.
make -f Makefile.tsxs
make -f Makefile.tsxs install
-Add 'rfc5861.so' to plugin.config.
+Add 'stale_while_revalidate.so' to plugin.config.
Restart traffic-server.
View
8 plugins/experimental/rfc5861/rfc5861.c → ...while_revalidate/stale_while_revalidate.c
@@ -34,7 +34,7 @@
#include "ts/ts.h"
#include "ts/experimental.h"
-#define PLUGIN_NAME "rfc5861"
+#define PLUGIN_NAME "stale_while_revalidate"
static const char HTTP_VALUE_STALE_WHILE_REVALIDATE[] = "stale-while-revalidate";
static const char HTTP_VALUE_STALE_IF_ERROR[] = "stale-if-error";
@@ -470,7 +470,7 @@ fetch_resource(TSCont cont, TSEvent event ATS_UNUSED, void *edata ATS_UNUSED)
TSHandleMLocRelease(state->req_info->buf, state->req_info->http_hdr_loc, connection_hdr_loc);
/*
- TSDebug(PLUGIN_NAME, "Creating @RFC5861 header");
+ TSDebug(PLUGIN_NAME, "Creating @stale_while_revalidate header");
TSMimeHdrFieldCreateNamed(state->req_info->buf, state->req_info->http_hdr_loc, TS_MIME_FIELD_CONNECTION, TS_MIME_LEN_CONNECTION, &connection_hdr_loc);
TSMimeHdrFieldValueStringInsert(state->req_info->buf, state->req_info->http_hdr_loc, connection_hdr_loc, -1, TS_HTTP_VALUE_CLOSE, TS_HTTP_LEN_CLOSE);
TSMimeHdrFieldAppend(state->req_info->buf, state->req_info->http_hdr_loc, connection_hdr_loc);
@@ -500,7 +500,7 @@ fetch_resource(TSCont cont, TSEvent event ATS_UNUSED, void *edata ATS_UNUSED)
}
static int
-rfc5861_plugin(TSCont cont, TSEvent event, void *edata)
+main_plugin(TSCont cont, TSEvent event, void *edata)
{
TSHttpTxn txn = (TSHttpTxn) edata;
int status, lookup_count;
@@ -736,7 +736,7 @@ TSPluginInit (int argc, const char *argv[])
// proxy.config.http.insert_age_in_response
TSHttpArgIndexReserve(PLUGIN_NAME, "txn state info", &(plugin_config->txn_slot));
- main_cont = TSContCreate(rfc5861_plugin, NULL);
+ main_cont = TSContCreate(main_plugin, NULL);
TSContDataSet(main_cont, (void *) plugin_config);
TSHttpHookAdd(TS_HTTP_READ_REQUEST_HDR_HOOK, main_cont);
View
2 plugins/experimental/rfc5861/test_server.js → ...tal/stale_while_revalidate/test_server.js
@@ -2,7 +2,7 @@
/** @file
- Implements Simple HTTP test server for the rfc5861 plugin
+ Implements Simple HTTP test server for the stale_while_revalidate plugin
@section license License

0 comments on commit e49d847

Please sign in to comment.