Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-1883

TLS origin connections do not support connection timeouts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • 7.0.0
    • Core, SSL
    • None

    Description

      In proxy/http/HttpSM.cc, we can see that origin connections do not support timeouts if the scheme is HTTPS:

      void
      HttpSM::do_http_server_open(bool raw)
      {
      ...
        if (t_state.scheme == URL_WKSIDX_HTTPS) {
          DebugSM("http", "calling sslNetProcessor.connect_re");
          connect_action_handle = sslNetProcessor.connect_re(this,    // state machine
                                                             &t_state.current.server->addr.sa,    // addr + port
                                                             &opt);
        } else {
      ...
            // Setup the timeouts
            // Set the inactivity timeout to the connect timeout so that we
            //   we fail this server if it doesn't start sending the response
            //   header
            MgmtInt connect_timeout;
            if (t_state.method == HTTP_WKSIDX_POST || t_state.method == HTTP_WKSIDX_PUT) {
              connect_timeout = t_state.txn_conf->post_connect_attempts_timeout;
            } else if (t_state.current.server == &t_state.parent_info) {
              connect_timeout = t_state.http_config_param->parent_connect_timeout;
            } else {
              if (t_state.pCongestionEntry != NULL)
                connect_timeout = t_state.pCongestionEntry->connect_timeout();
              else
                connect_timeout = t_state.txn_conf->connect_attempts_timeout;
            }
            DebugSM("http", "calling netProcessor.connect_s");
            connect_action_handle = netProcessor.connect_s(this,      // state machine
                                                           &t_state.current.server->addr.sa,    // addr + port
                                                           connect_timeout, &opt);
      ...
        }
      
      

      Attachments

        Issue Links

          Activity

            People

              shinrich Susan Hinrichs
              jamespeach James Peach
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: