cURL / Mailing Lists / curl-library / Single Mail

curl-library

HTTP 2.0 selects forever

From: Gisle Vanem <gvanem_at_yahoo.no>
Date: Wed, 25 Sep 2013 14:34:12 +0200

I'm having some success with HTTP 2.0 using the NgHTTP2 test server
 http://106.186.112.116/ . I don't suppose there are other HTTP 2.0 servers
I can test with?

The problem is some extra garbage in the start and end of output. Using this
command
  curl --http2.0 http://106.186.112.116/

Gives this in the beginning (before the "<!DOCTYPE"):

 ┴☺♦ ☺ÇB☺0E text/htmlF↔Wed, 25 Sep 2013 12:14:27 GMTG→"179b1-19b0-4e657336a7280"I↔Sat, 14 Sep 2013
12:35:06 GMTJ▬Apache/2.2.22 (Ubuntu)L☼Accept-EncodingM↑1.1 varnish, 1.1 nghttpx@ x-varnish
215791734♫╝ ☺

And at the end:

      Created using Sphinx 1.1.3.
    </div>
  </body>
</html> ☺ ☺

Some junk at the end too.

Another thing, using a Winsock-tracer lib I can see libcurl is still waiting on
more data on recv-socket:

 * g:\mingw32\src\inet\curl\lib\select.c(466) (Curl_poll+584):
    select (n=1525, rd, wr, ex, {tv=1.000000s}) --> No error.
      fd_input -> rd: 1524
                   wr:
                   ex:
      fd_output -> rd:
                   wr:
                   ex:

-----

I can see the "Switching Protocols" and "Upgrade: HTTP/2.0" in the response.
But no "Content-Length:". How is libcurl supposed to know when to stop receiving?

I'm using MSVC on Win-XP SP3.

--gv

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-09-25