You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "James Peach (JIRA)" <ji...@apache.org> on 2013/05/09 01:27:15 UTC

[jira] [Created] (TS-1883) SSL origin connections do not support connection timeouts

James Peach created TS-1883:
-------------------------------

             Summary: SSL origin connections do not support connection timeouts
                 Key: TS-1883
                 URL: https://issues.apache.org/jira/browse/TS-1883
             Project: Traffic Server
          Issue Type: Bug
          Components: Core, SSL
            Reporter: James Peach


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

{code}
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);
...
  }

{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira