http/2 support in cef

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

http/2 support in cef

Postby JoanGu » Tue Jan 19, 2016 5:57 pm

Hi,

We have CEF 2454 integrated in our application. We wanted to test out http/2 protocol to take advantage of the improved loading time. We have set up a http proxy server that uses http/2. The requests sent over from Chrome version 45 are using http/2 but the requests sent over from within our application (cef 2454) still uses http/1.1. I also tested the same request using cefclient app. It seems that cefclient is not able to use http/2. So my question is: is http2 something supported only by Google Chrome but not in cef? Or do we miss something to enable http2 support in cef?
JoanGu
Newbie
 
Posts: 8
Joined: Thu Feb 26, 2015 7:07 pm

Re: http/2 support in cef

Postby magreenblatt » Tue Jan 19, 2016 6:09 pm

I don't believe HTTP/2 (SPDY4) is enabled by default in Google Chrome. There are some field trials currently ongoing that perhaps you've lucked into. In any case it is not currently enabled in CEF. Implementation details are available at https://code.google.com/p/chromium/issu ... ?id=345769.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: http/2 support in cef

Postby gonzo » Thu Jan 21, 2016 5:01 pm

magreenblatt wrote:I don't believe HTTP/2 (SPDY4) is enabled by default in Google Chrome. There are some field trials currently ongoing that perhaps you've lucked into. In any case it is not currently enabled in CEF. Implementation details are available at https://code.google.com/p/chromium/issu ... ?id=345769.


My understanding is that HTTP/2 has been enabled by default in Chrome since v40. If you run https://http2.akamai.com/demo in Chrome 45 it works fine. I found some source in src\chrome\browser\io_thread.cc that enables SPDY/4 assuming it hasn't been explicitly disabled using --use-spdy=off. It would be nice if CEF could be updated with the same defaults as Chrome.

I hacked up a local copy of CEF to get it working but I'm not sure it's correct.

patch.txt
(1.08 KiB) Downloaded 550 times
gonzo
Techie
 
Posts: 10
Joined: Thu Feb 06, 2014 3:58 pm

Re: http/2 support in cef

Postby magreenblatt » Thu Jan 21, 2016 5:02 pm

gonzo wrote:
magreenblatt wrote:I don't believe HTTP/2 (SPDY4) is enabled by default in Google Chrome. There are some field trials currently ongoing that perhaps you've lucked into. In any case it is not currently enabled in CEF. Implementation details are available at https://code.google.com/p/chromium/issu ... ?id=345769.


My understanding is that HTTP/2 has been enabled by default in Chrome since v40. If you run https://http2.akamai.com/demo in Chrome 45 it works fine. I found some source in src\chrome\browser\io_thread.cc that enables SPDY/4 assuming it hasn't been explicitly disabled using --use-spdy=off. It would be nice if CEF could be updated with the same defaults as Chrome.

I hacked up a local copy of CEF to get it working but I'm not sure it's correct.

patch.txt

Please file a bug and submit a pull request.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: http/2 support in cef

Postby luodijia » Thu Dec 08, 2016 2:59 am

The same question as mine. Is it solved just only update chromium to 51? I can't find the issue or pull request.
luodijia
Techie
 
Posts: 37
Joined: Mon Dec 22, 2014 11:55 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 90 guests