Questions tagged [nghttp2]

nghttp2 is a HTTP/2 C library

nghttp2 is a HTTP/2 C library. It has a full and efficient HPACK implementation. It is used by curl and many more.

86 questions
30
votes
1 answer

How many concurrent requests should we multiplex in HTTP/2

For a long time, browsers have used a maximum of 6 concurrent HTTP 1.1 connections per host to retrieve assets from web page. Going (far) beyond this golden standard is perceived as DOS and get you banned from a server. Now there is HTTP/2 and we…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
8
votes
1 answer

nghttp2 multipart POST message

I am currently trying to use nghttp2 to build a multipart message. The message should be strcuture as the following. I should use the nghttp2_submit_request(here) function, with nva as my HTTP/2 header, and nghttp2_data_provider *data_prd for my…
wrek
  • 1,061
  • 5
  • 14
  • 26
7
votes
1 answer

using --http2.0 option with curl 7.33.0 gives unsupported protocol

I am using centos 6.2, i needed to use curl --http2.0 in one of the server request, but i was having 7.19.6, after looking at http://curl.haxx.se/docs/manpage.html gives me that --http2.0 option is only supported with curl 7.33.0, so to overcome…
Mehul Thakkar
  • 12,440
  • 10
  • 52
  • 81
6
votes
2 answers

Jetty HTTP/2 client receive server push example

Jetty's HTTP/2 client with server push support has been implemented in Jetty 9.3 RC (Link). However, I have not found any documentation or example code related to this. Could any one provide an example code for example to receive the pushed resource…
Hải Phong
  • 5,094
  • 6
  • 31
  • 49
4
votes
1 answer

Using SwiftNIO and SwiftNIOHTTP2 as an HTTP2 client

I'm currently working on a simple HTTP2 client in Swift using SwiftNIO and the SwiftNIOHTTP2 beta. My implementation looks like this: let group = MultiThreadedEventLoopGroup(numberOfThreads: 1) let bootstrap = ClientBootstrap(group: group) …
strnmn
  • 555
  • 1
  • 6
  • 30
4
votes
1 answer

Can I speak HTTP/2 over STDIN/STDOUT?

Can I speak HTTP/2 over STDIN/STDOUT? If so, how could I do it, and what would be the limitations?
Demi
  • 3,535
  • 5
  • 29
  • 45
4
votes
1 answer

How could I save files on browser cache after pushing it with a Server push?

I have an Apache with http2, and I have made a server push of files which I would like to save on browser cache, but it doesnt and I dont know why. I have made the push with a php file, the following one. header( 'Link:…
Elo
  • 137
  • 1
  • 9
4
votes
1 answer

apache mod_http2 prerequisite failures

I am trying to RPM build apache 2.4.18 with mod_http2 on CentOS 7. However, when building I get the following failure: checking whether to enable mod_http2... checking dependencies checking for nghttp2... checking for user-provided nghttp2 base…
Ashley Bye
  • 1,752
  • 2
  • 23
  • 40
3
votes
0 answers

nghttp2 server handle multiple requests from a client on different threads

I am using nghttp2 to implement a RESTful API server. I have defined two GET APIs: /api/ping and /api/wait. While the response to the former is sent immediately, the server does some processing before responding to the latter. I allotted 4 threads…
Soumya Kanti
  • 1,429
  • 1
  • 17
  • 28
3
votes
0 answers

nghttp2 processing requests sequentially when requests belong to same client session

Scenario: I am running a rest server(nghttp2) with two APIs with 4 threads. /something : takes some time to process /anything : takes no time to process Now, in the client side I am creating one session(which is essentially one TCP connection) and…
Avik Dutta
  • 177
  • 9
3
votes
3 answers

Unable to make http2 requests to an Apache Server, though the server sends "Upgrade:h2" in response headers

I have enabled mod_http2 for the Apache Web Server, and made the necessary changes in the conf, still any request made from a browser to the server follows http/1.1 Protocol The server sends a Upgrade:h2 header field but the browser still continues…
sainiankit
  • 571
  • 3
  • 17
3
votes
1 answer

httpd-2.4.18 mod_http2 works with curl and nghttp but doesn't work with the browser

I have installed httpd-2.4.18 with nghttp 1.6.0 and curl 7.46 to work with an http2 server. It seems that the server works with http2 when I test it with Curl and nghttp comands (as you can see below), but when I use the browser( Google Chrome…
Elo
  • 137
  • 1
  • 9
3
votes
3 answers

How to disable Server Key Exchange from the code?

I run an HTTP2 server example (libevent-server.c) from nghttp2 on Ubuntu 15.04. I would like to sniff the HTTP2 packet between the client-server using Wireshark. I don't use any web browser as the client, so the tips on how to read HTTP2 message in…
Curioso
  • 343
  • 1
  • 3
  • 7
2
votes
1 answer

tls: no application protocol negotiated

First time to using the libnghttp2-asio library despite it being deprecated. I'm experimenting how I think would give the reddit webpage as follows: boost::system::error_code ec; namespace net = nghttp2::asio_http2; namespace ssl =…
2
votes
0 answers

libcurl not upgrading POST requests to HTTP/2 on OpenWrt

When I compile an OpenWrt image with make menuconfig, I am checking the libcurl box and then checking the box to add HTTP/2 support, and making sure that the nghttp2 library is also checked. In my code that makes the requests, I have the…
1
2 3 4 5 6