Commit e84a863d authored by Michael Kaufmann's avatar Michael Kaufmann
Browse files

proxy: skip SSL initialization for closed connections



This prevents a "Descriptor is not a socket" error for WinSSL.

Reported-by: default avatar <Antony74@users.noreply.github.com>
Reviewed-by: Jay Satiro

Fixes https://github.com/curl/curl/issues/1239
parent 0afbcfd8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1359,6 +1359,10 @@ CURLcode Curl_http_connect(struct connectdata *conn, bool *done)
  if(result)
    return result;

  if(conn->bits.proxy_connect_closed)
    /* this is not an error, just part of the connection negotiation */
    return CURLE_OK;

  if(CONNECT_FIRSTSOCKET_PROXY_SSL())
    return CURLE_OK; /* wait for HTTPS proxy SSL initialization to complete */