diff options
-rw-r--r-- | lib/imap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/imap.c b/lib/imap.c index cad0e5908..39aa0af33 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -1176,6 +1176,9 @@ static CURLcode imap_state_fetch_resp(struct connectdata *conn, int imapcode, else { /* IMAP download */ data->req.maxdownload = size; + /* force a recv/send check of this connection, as the data might've been + read off the socket already */ + data->conn->cselect_bits = CURL_CSELECT_IN; Curl_setup_transfer(data, FIRSTSOCKET, size, FALSE, -1); } } |