Loading lib/http.c +15 −14 Original line number Diff line number Diff line Loading @@ -3332,13 +3332,11 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data, } else if(conn->httpversion == 20 || (k->upgr101 == UPGR101_REQUESTED && k->httpcode == 101)) { /* Don't enable pipelining for HTTP/2 or upgraded connection. For HTTP/2, we do not support multiplexing. In general, requests cannot be pipelined in upgraded connection, since it is now different protocol. */ DEBUGF(infof(data, "HTTP 2 or upgraded connection do not support " "pipelining for now\n")); DEBUGF(infof(data, "HTTP/2 found, allow multiplexing\n")); /* HTTP/2 cannot blacklist multiplexing since it is a core functionality of the protocol */ conn->bundle->server_supports_pipelining = TRUE; } else if(conn->httpversion >= 11 && !conn->bits.close) { Loading Loading @@ -3432,6 +3430,8 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data, } } else if(checkprefix("Server:", k->p)) { if(conn->httpversion < 20) { /* only do this for non-h2 servers */ char *server_name = Curl_copy_header_value(k->p); /* Turn off pipelining if the server version is blacklisted */ Loading @@ -3441,6 +3441,7 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data, } free(server_name); } } else if((conn->httpversion == 10) && conn->bits.httpproxy && Curl_compareheader(k->p, Loading Loading
lib/http.c +15 −14 Original line number Diff line number Diff line Loading @@ -3332,13 +3332,11 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data, } else if(conn->httpversion == 20 || (k->upgr101 == UPGR101_REQUESTED && k->httpcode == 101)) { /* Don't enable pipelining for HTTP/2 or upgraded connection. For HTTP/2, we do not support multiplexing. In general, requests cannot be pipelined in upgraded connection, since it is now different protocol. */ DEBUGF(infof(data, "HTTP 2 or upgraded connection do not support " "pipelining for now\n")); DEBUGF(infof(data, "HTTP/2 found, allow multiplexing\n")); /* HTTP/2 cannot blacklist multiplexing since it is a core functionality of the protocol */ conn->bundle->server_supports_pipelining = TRUE; } else if(conn->httpversion >= 11 && !conn->bits.close) { Loading Loading @@ -3432,6 +3430,8 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data, } } else if(checkprefix("Server:", k->p)) { if(conn->httpversion < 20) { /* only do this for non-h2 servers */ char *server_name = Curl_copy_header_value(k->p); /* Turn off pipelining if the server version is blacklisted */ Loading @@ -3441,6 +3441,7 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data, } free(server_name); } } else if((conn->httpversion == 10) && conn->bits.httpproxy && Curl_compareheader(k->p, Loading