]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
transfer: drop the code handling the ssl_connect_retry flag
authorKamil Dudka <kdudka@redhat.com>
Wed, 29 Oct 2014 13:24:54 +0000 (14:24 +0100)
committerKamil Dudka <kdudka@redhat.com>
Wed, 29 Oct 2014 13:34:46 +0000 (14:34 +0100)
Its last use has been removed by the previous commit.

lib/transfer.c
lib/urldata.h

index 7edf14afa77b8d062322eb2e2d6d62e88553fa25..b5ba86eb402ff856b6429d488c0c945d241a2035 100644 (file)
@@ -1297,8 +1297,6 @@ CURLcode Curl_pretransfer(struct SessionHandle *data)
   data->state.errorbuf = FALSE; /* no error has occurred */
   data->state.httpversion = 0; /* don't assume any particular server version */
 
-  data->state.ssl_connect_retry = FALSE;
-
   data->state.authproblem = FALSE;
   data->state.authhost.want = data->set.httpauth;
   data->state.authproxy.want = data->set.proxyauth;
@@ -1872,12 +1870,10 @@ CURLcode Curl_retry_request(struct connectdata *conn,
      !(conn->handler->protocol&(PROTO_FAMILY_HTTP|CURLPROTO_RTSP)))
     return CURLE_OK;
 
-  if(/* workaround for broken TLS servers */ data->state.ssl_connect_retry ||
-      ((data->req.bytecount +
-        data->req.headerbytecount == 0) &&
-        conn->bits.reuse &&
-        !data->set.opt_no_body &&
-       data->set.rtspreq != RTSPREQ_RECEIVE)) {
+  if((data->req.bytecount + data->req.headerbytecount == 0) &&
+      conn->bits.reuse &&
+      !data->set.opt_no_body &&
+      (data->set.rtspreq != RTSPREQ_RECEIVE)) {
     /* We got no data, we attempted to re-use a connection and yet we want a
        "body". This might happen if the connection was left alive when we were
        done using it before, but that was closed when we wanted to read from
index ec80a7f8289e2f3e5c378134ae787d6720d095ff..83d190453719b764b717456c5d8cb7a57a361b1d 100644 (file)
@@ -1321,8 +1321,6 @@ struct UrlState {
   long rtsp_next_server_CSeq; /* the session's next server CSeq */
   long rtsp_CSeq_recv; /* most recent CSeq received */
 
-  /* if true, force SSL connection retry (workaround for certain servers) */
-  bool ssl_connect_retry;
   curl_off_t infilesize; /* size of file to upload, -1 means unknown.
                             Copied from set.filesize at start of operation */
 };