Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/ae094cff2938104e5a3a46c430bd35b5b32a039b
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/ae094cff2938104e5a3a46c430bd35b5b32a039b
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/ae094cff2938104e5a3a46c430bd35b5b32a039b

The branch, chris/http2 has been created
        at  ae094cff2938104e5a3a46c430bd35b5b32a039b (commit)

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=ae094cff2938104e5a3a46c430bd35b5b32a039b
commit ae094cff2938104e5a3a46c430bd35b5b32a039b
Author: Chris Young <[email protected]>
Commit: Chris Young <[email protected]>

    Prefer HTTP/2+multiplexing on encrypted connections

diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c
index 7d0e40c..c8e4caf 100644
--- a/content/fetchers/curl.c
+++ b/content/fetchers/curl.c
@@ -569,6 +569,11 @@ static CURLcode fetch_curl_set_options(struct 
curl_fetch_info *f)
                return code;                                    \
        }
 
+#if LIBCURL_VERSION_NUM >= 0x072f00
+       /* Added in 7.47 */
+       /* Prefer HTTP/2 on encrypted connections */
+       SETOPT(CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2TLS);
+#endif
        SETOPT(CURLOPT_URL, nsurl_access(f->url));
        SETOPT(CURLOPT_PRIVATE, f);
        SETOPT(CURLOPT_WRITEDATA, f);
@@ -1457,6 +1462,13 @@ nserror fetch_curl_register(void)
                SETOPT(CURLMOPT_MAXCONNECTS, maxconnects);
                SETOPT(CURLMOPT_MAX_TOTAL_CONNECTIONS, maxconnects);
                SETOPT(CURLMOPT_MAX_HOST_CONNECTIONS, 
nsoption_int(max_fetchers_per_host));
+
+#if LIBCURL_VERSION_NUM >= 0x072b00
+               /* Added in 7.43.0 */
+               /* Use HTTP/2 multiplexing */
+               SETOPT(CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX);
+#endif
+
        }
 #endif
 


-----------------------------------------------------------------------


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to