You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by el...@apache.org on 2022/04/18 23:34:40 UTC

[trafficserver] branch master updated: Removes remaining vestiges to the backdoor port (#8793)

This is an automated email from the ASF dual-hosted git repository.

elsloo 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 fd0ca7d88 Removes remaining vestiges to the backdoor port (#8793)
fd0ca7d88 is described below

commit fd0ca7d8831cee1ec9c71edda0b20861eb2a95c5
Author: Jeff Elsloo <el...@users.noreply.github.com>
AuthorDate: Mon Apr 18 17:34:35 2022 -0600

    Removes remaining vestiges to the backdoor port (#8793)
    
    * Majority of code was removed in #4866
    
    * `--proxyBackDoor` argument removed from `traffic_manager` in #3609
---
 doc/appendices/command-line/traffic_manager.en.rst | 1 -
 iocore/net/I_NetProcessor.h                        | 1 -
 iocore/net/UnixNetAccept.cc                        | 4 ++--
 iocore/net/UnixNetProcessor.cc                     | 1 -
 4 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/doc/appendices/command-line/traffic_manager.en.rst b/doc/appendices/command-line/traffic_manager.en.rst
index 359565a1a..90ae56d20 100644
--- a/doc/appendices/command-line/traffic_manager.en.rst
+++ b/doc/appendices/command-line/traffic_manager.en.rst
@@ -34,7 +34,6 @@ Description
 .. option:: --help
 .. option:: --nosyslog
 .. option:: --path FILE
-.. option:: --proxyBackDoor PORT
 .. option:: --proxyOff
 .. option:: --listenOff
 .. option:: --proxyPort PORT
diff --git a/iocore/net/I_NetProcessor.h b/iocore/net/I_NetProcessor.h
index 8afd264da..842ce082d 100644
--- a/iocore/net/I_NetProcessor.h
+++ b/iocore/net/I_NetProcessor.h
@@ -69,7 +69,6 @@ public:
     /// Are frequent accepts expected?
     /// Default: @c false.
     bool frequent_accept;
-    bool backdoor;
 
     /// Socket receive buffer size.
     /// 0 => OS default.
diff --git a/iocore/net/UnixNetAccept.cc b/iocore/net/UnixNetAccept.cc
index 195369584..074e3038f 100644
--- a/iocore/net/UnixNetAccept.cc
+++ b/iocore/net/UnixNetAccept.cc
@@ -320,7 +320,7 @@ NetAccept::do_blocking_accept(EThread *t)
       }
     }
     // check for throttle
-    if (!opt.backdoor && check_net_throttle(ACCEPT)) {
+    if (check_net_throttle(ACCEPT)) {
       check_throttle_warning(ACCEPT);
       // close the connection as we are in throttle state
       con.close();
@@ -437,7 +437,7 @@ NetAccept::acceptFastEvent(int event, void *ep)
 
     if (likely(fd >= 0)) {
       // check for throttle
-      if (!opt.backdoor && check_net_throttle(ACCEPT)) {
+      if (check_net_throttle(ACCEPT)) {
         // close the connection as we are in throttle state
         con.close();
         NET_SUM_DYN_STAT(net_connections_throttled_in_stat, 1);
diff --git a/iocore/net/UnixNetProcessor.cc b/iocore/net/UnixNetProcessor.cc
index ac981d369..35fae59f0 100644
--- a/iocore/net/UnixNetProcessor.cc
+++ b/iocore/net/UnixNetProcessor.cc
@@ -43,7 +43,6 @@ NetProcessor::AcceptOptions::reset()
   etype                 = ET_NET;
   localhost_only        = false;
   frequent_accept       = true;
-  backdoor              = false;
   recv_bufsize          = 0;
   send_bufsize          = 0;
   sockopt_flags         = 0;