You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by sh...@apache.org on 2018/09/07 14:08:17 UTC
[trafficserver] branch master updated: Remove the ignore_keep_alive
method entirely
This is an automated email from the ASF dual-hosted git repository.
shinrich 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 da9edd5 Remove the ignore_keep_alive method entirely
da9edd5 is described below
commit da9edd5feba06da6ebbe47eaf9696c37c5483fa1
Author: Susan Hinrichs <sh...@oath.com>
AuthorDate: Thu Aug 2 13:44:54 2018 +0000
Remove the ignore_keep_alive method entirely
---
proxy/ProxyClientTransaction.h | 6 ------
proxy/http/Http1ClientTransaction.h | 6 ------
proxy/http/HttpTransact.cc | 2 +-
proxy/http2/Http2Stream.h | 7 -------
4 files changed, 1 insertion(+), 20 deletions(-)
diff --git a/proxy/ProxyClientTransaction.h b/proxy/ProxyClientTransaction.h
index 68193ad..4dc46aa 100644
--- a/proxy/ProxyClientTransaction.h
+++ b/proxy/ProxyClientTransaction.h
@@ -196,12 +196,6 @@ public:
{
}
- virtual bool
- ignore_keep_alive()
- {
- return true;
- }
-
virtual void destroy();
virtual void transaction_done() = 0;
diff --git a/proxy/http/Http1ClientTransaction.h b/proxy/http/Http1ClientTransaction.h
index 0251b2c..8a87666 100644
--- a/proxy/http/Http1ClientTransaction.h
+++ b/proxy/http/Http1ClientTransaction.h
@@ -81,12 +81,6 @@ public:
void release(IOBufferReader *r) override;
- bool
- ignore_keep_alive() override
- {
- return false;
- }
-
bool allow_half_open() const override;
void set_parent(ProxyClientSession *new_parent) override;
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index 689a64f..348b7fb 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -5441,7 +5441,7 @@ HttpTransact::initialize_state_variables_from_request(State *s, HTTPHdr *obsolet
}
// If this is an internal request, never keep alive
- if (!s->txn_conf->keep_alive_enabled_in || (s->state_machine->ua_txn && s->state_machine->ua_txn->ignore_keep_alive())) {
+ if (!s->txn_conf->keep_alive_enabled_in) {
s->client_info.keep_alive = HTTP_NO_KEEPALIVE;
} else if (vc && vc->get_is_internal_request()) {
// Following the trail of JIRAs back from TS-4960, there can be issues with
diff --git a/proxy/http2/Http2Stream.h b/proxy/http2/Http2Stream.h
index 1fecf80..e995090 100644
--- a/proxy/http2/Http2Stream.h
+++ b/proxy/http2/Http2Stream.h
@@ -159,13 +159,6 @@ public:
void signal_write_event(bool call_update);
void reenable(VIO *vio) override;
void transaction_done() override;
- bool
- ignore_keep_alive() override
- {
- // If we return true here, Connection header will always be "close".
- // It should be handled as the same as HTTP/1.1
- return false;
- }
void restart_sending();
void push_promise(URL &url, const MIMEField *accept_encoding);