aboutsummaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2014-10-29 14:24:54 +0100
committerKamil Dudka <kdudka@redhat.com>2014-10-29 14:34:46 +0100
commit276741af4ddebe0cc0d446712fb8dfdf0c140e7b (patch)
treeb91d8e7b0faa6e2adf2b57a75a9a6939a52f06ea /lib/transfer.c
parent3f430c9c3a4e3748bc075b633a9324c5037c9fe7 (diff)
transfer: drop the code handling the ssl_connect_retry flag
Its last use has been removed by the previous commit.
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 7edf14afa..b5ba86eb4 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -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