CURLM_STATE_CONNECT, /* resolve/connect has been sent off */
CURLM_STATE_WAITRESOLVE, /* awaiting the resolve to finalize */
CURLM_STATE_WAITCONNECT, /* awaiting the connect to finalize */
+#ifndef CURL_DISABLE_HTTP
CURLM_STATE_WAITPROXYCONNECT, /* awaiting proxy CONNECT to finalize */
+#endif
CURLM_STATE_PROTOCONNECT, /* completing the protocol-specific connect
phase */
CURLM_STATE_WAITDO, /* wait for our turn to send the request */
if(protocol_connect)
multistate(easy, CURLM_STATE_WAITDO);
else {
+#ifndef CURL_DISABLE_HTTP
if (easy->easy_conn->bits.tunnel_connecting)
multistate(easy, CURLM_STATE_WAITPROXYCONNECT);
else
+#endif
multistate(easy, CURLM_STATE_WAITCONNECT);
}
}
if(protocol_connect)
multistate(easy, CURLM_STATE_DO);
else {
+#ifndef CURL_DISABLE_HTTP
if (easy->easy_conn->bits.tunnel_connecting)
multistate(easy, CURLM_STATE_WAITPROXYCONNECT);
else
+#endif
multistate(easy, CURLM_STATE_WAITCONNECT);
}
}
}
break;
+#ifndef CURL_DISABLE_HTTP
case CURLM_STATE_WAITPROXYCONNECT:
/* this is HTTP-specific, but sending CONNECT to a proxy is HTTP... */
easy->result = Curl_http_connect(easy->easy_conn, &protocol_connect);
multistate(easy, CURLM_STATE_WAITCONNECT);
}
break;
+#endif
case CURLM_STATE_WAITCONNECT:
/* awaiting a completion of an asynch connect */