diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-05-20 16:50:24 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-05-20 16:50:24 +0200 |
commit | 99114faf8281e13492e857c935f51d3fad6f22dc (patch) | |
tree | 043482db2034e88a139b35e8bd6963dfab432e14 /lib/http2.h | |
parent | 316f79cef2318baf65dc55dec9b1617684fd78dd (diff) | |
download | curl-99114faf8281e13492e857c935f51d3fad6f22dc.tar.gz |
http2: make connection re-use work
Http2 connections would wrongly get closed after each individual
request.
Co-authored-by: Tatsuhiro Tsujikawa
Bug: http://curl.haxx.se/bug/view.cgi?id=1374
Diffstat (limited to 'lib/http2.h')
-rw-r--r-- | lib/http2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/http2.h b/lib/http2.h index ef994b7ba..5b14f21e2 100644 --- a/lib/http2.h +++ b/lib/http2.h @@ -36,12 +36,14 @@ CURLcode Curl_http2_init(struct connectdata *conn); CURLcode Curl_http2_send_request(struct connectdata *conn); CURLcode Curl_http2_request_upgrade(Curl_send_buffer *req, struct connectdata *conn); +void Curl_http2_setup(struct connectdata *conn); int Curl_http2_switched(struct connectdata *conn); #else /* USE_NGHTTP2 */ #define Curl_http2_init(x) #define Curl_http2_send_request(x) #define Curl_http2_request_upgrade(x,y) CURLE_OK #define Curl_http2_switched(x) +#define Curl_http2_setup(x) #endif #endif /* HEADER_CURL_HTTP2_H */ |