curl-library
Re: HTTP2 and SPDY
Date: Thu, 30 Jan 2014 00:50:17 +0100 (CET)
On Wed, 29 Jan 2014, Tatsuhiro Tsujikawa wrote:
> Feel free to raise the issue at nghttp2 project page.
Good to see you here Tatsuhiro, thanks for helping out!
I added more code to libcurl to actually slowly start to receive http2 frames
but I end up with nghttp2_session_recv() failing for the moment. I filed
https://github.com/tatsuhiro-t/nghttp2/issues/24 as I would really like some
help from the lib to point out what the problem is!
Additionally, I get one invalid frame it says. I will clearly need to add more
debugging ability to libcurl for this so that --trace etc works for the http2
data as well!
My test output with code from git shows this:
<= Recv header, 21 bytes (0x15)
0000: 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 55 70 67 72 Connection: Upgr
0010: 61 64 65 0d 0a ade..
<= Recv header, 28 bytes (0x1c)
0000: 55 70 67 72 61 64 65 3a 20 48 54 54 50 2d 64 72 Upgrade: HTTP-dr
0010: 61 66 74 2d 30 39 2f 32 2e 30 0d 0a aft-09/2.0..
== Info: Received 101
== Info: We have switched to HTTP2
== Info: on_invalid_frame_recv() was called, error_code = 1
== Info: Got ':status:200'
== Info: Got 'accept-ranges:bytes'
== Info: Got 'age:0'
== Info: Got 'content-length:10478'
== Info: Got 'content-type:text/html'
== Info: Got 'date:Wed, 29 Jan 2014 23:47:24 GMT'
== Info: Got 'etag:"52daab5b-28ee"'
== Info: Got 'last-modified:Sat, 18 Jan 2014 16:27:07 GMT'
== Info: Got 'server:nginx/1.4.1 (Ubuntu)'
== Info: Got 'x-varnish:2029056218'
== Info: Got 'via:1.1 varnish, 1.1 nghttpx'
== Info: on_frame_recv() was called with header 1
== Info: Failed receiving HTTP2 data
== Info: nghttp2_session_recv() returned -902
== Info: STATE: PERFORM => DONE handle 0x14e4498; line 1582 (connection #0)
== Info: Connection #0 to host 106.186.112.116 left intact
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-01-30