summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-03-05 23:52:41 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-03-05 23:54:32 +0100
commitcf65e1d75dc153cf20ea202fa7da3671dfa680a3 (patch)
tree80acd8216d92fb916dd2234ca87d2c91d2618dc2
parent32a28dc28d54c73d9db2424763c45da7696dc0ac (diff)
downloadcurl-bagder/rm-stream_was_rewound.tar.gz
urldata: remove the 'stream_was_rewound' connectdata struct memberbagder/rm-stream_was_rewound
... as it is never set anywhere. Follow-up to 2f44e94ef
-rw-r--r--lib/transfer.c6
-rw-r--r--lib/urldata.h2
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 827076183..2020f8cab 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -890,7 +890,7 @@ static CURLcode readwrite_data(struct Curl_easy *data,
} /* if(!header and data to read) */
- if(conn->handler->readwrite && excess && !conn->bits.stream_was_rewound) {
+ if(conn->handler->readwrite && excess) {
/* Parse the excess data */
k->str += nread;
@@ -1235,9 +1235,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
/* We go ahead and do a read if we have a readable socket or if
the stream was rewound (in which case we have data in a
buffer) */
- if((k->keepon & KEEP_RECV) &&
- ((select_res & CURL_CSELECT_IN) || conn->bits.stream_was_rewound)) {
-
+ if((k->keepon & KEEP_RECV) && (select_res & CURL_CSELECT_IN)) {
result = readwrite_data(data, conn, k, &didwhat, done, comeback);
if(result || *done)
return result;
diff --git a/lib/urldata.h b/lib/urldata.h
index e1348cf29..9e4626530 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -464,8 +464,6 @@ struct ConnectBits {
#endif
BIT(netrc); /* name+password provided by netrc */
BIT(userpwd_in_url); /* name+password found in url */
- BIT(stream_was_rewound); /* The stream was rewound after a request read
- past the end of its response byte boundary */
BIT(proxy_connect_closed); /* TRUE if a proxy disconnected the connection
in a CONNECT request with auth, so that
libcurl should reconnect and continue. */