浏览代码

http_async_client: disable HTTP/2 multiplexing

Federico Cabiddu 4 年之前
父节点
当前提交
fd3f3b4ae9
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/modules/http_async_client/http_multi.c

+ 1 - 0
src/modules/http_async_client/http_multi.c

@@ -402,6 +402,7 @@ int init_http_multi(struct event_base *evbase, struct http_m_global *wg)
 	curl_multi_setopt(g->multi, CURLMOPT_SOCKETDATA, g);
 	curl_multi_setopt(g->multi, CURLMOPT_SOCKETDATA, g);
 	curl_multi_setopt(g->multi, CURLMOPT_TIMERFUNCTION, multi_timer_cb);
 	curl_multi_setopt(g->multi, CURLMOPT_TIMERFUNCTION, multi_timer_cb);
 	curl_multi_setopt(g->multi, CURLMOPT_TIMERDATA, g);
 	curl_multi_setopt(g->multi, CURLMOPT_TIMERDATA, g);
+	curl_multi_setopt(g->multi, CURLMOPT_PIPELINING, CURLPIPE_NOTHING);
 
 
 	return init_http_m_table(hash_size);
 	return init_http_m_table(hash_size);
 }
 }