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
1
vote
1 answer

nghttp2: POST payload

I am trying to POST a dataset using nghttp2. I noticed that the nghttp2_submit_request sends the stream_user_data just through header frame not the data frame. What's the convenient method to submit a data (json or binary) using nghttp2? Should I…
Reza Shahbazi
  • 431
  • 2
  • 5
  • 13
1
vote
1 answer

Generating a Certificate for Local HTTP/2 Proxy

I'm trying to get Firefox nightly to use a secure HTTP/2 proxy, but it's refusing to accept a self-signed certificate. The proxy is composed of nghttp2 as the HTTP/2 front-end and a simple Twisted proxy as the back-end. The Twisted code is from…
Ric
  • 581
  • 5
  • 26
0
votes
0 answers

Error while executing large number of request from client(http2 client) to server(http2 server)

I am creating Http/2 server where sending a large number(approx. > 50000) of request from server to client. But after sending this number of request it is giving error. Note: By appling some delay (0.5ms || 0.05ms) in betweeen in each request sent…
0
votes
0 answers

Timed out uploading files using the http2 protocol?

nginx version: nginx/1.23.3 JS upload tool: axios Interface uri:/fp01/upload Uploading using HTTP, protocol http1.1, upload normal Uploading using HTTPS, protocol http1.1, upload normal Uploading using http2, timeout This is my nginx…
何呵呵
  • 25
  • 3
0
votes
1 answer

Does nginx still have HTTP 1.1 browser access after enabling HTTP 2?

nginx version nginx/1.23.3 openssl version OpenSSL 1.0.2k-fips 26 Jan 2017 nginx config server { listen 80; listen 443 ssl http2; ssl_certificate /usr/local/nginx/conf/ssl/key.cer; ssl_certificate_key /usr/local/nginx/conf/ssl/key.key; …
何呵呵
  • 25
  • 3
0
votes
0 answers

Notification for client connection establishment in server

I am using nghttp2 C++ library (version 1.30) to implement a web server using nghttp2::asio_http2::server. In the deployment many HTTP client connects to the sever and invokes several REST API over time before diconnect. The nghttp2 C++ library…
Halder
  • 47
  • 2
0
votes
0 answers

Description A byte of unknown significance exists in the Headers frame of http2

I used a man-in-the-middle program to get the http2 source data. I got a HEADERS frame like this after I split and shunt the data I got. This frame is the first HEADERS frame returned by the server in this connection. [enter image description…
lmdd
  • 1
  • 1
0
votes
0 answers

Unable to gracefully close http2 client stream in nodejs

I have the following code which has been heavily inspired from nodejs official documentation of a client-side example import http2 from 'http2'; // The `http2.connect` method creates a new session with example.com const session =…
Mukul Gupta
  • 2,310
  • 3
  • 24
  • 39
0
votes
0 answers

is there any possible to change nghttpx souce code that only allow connection with speciafied host name from a list

I deployed a ssl proxy with nghttx + squid with wildcard ssl domain eg:*.s1.example.com and I do not want use basic auth by squid because the GFW firewall can determine by basic auth header and will block ssl connection to this domain I want to…
cosbeta
  • 25
  • 4
0
votes
0 answers

epoll_pwait / recvfrom bottleneck on nghttp2-asio server

I have uploaded a simplified http2 server gist based on another gist from tatsuhiro-t, in order to show you my concerns about something that seems to be a bottleneck that I think it is because boost asio limitation, or perhaps how tatsuhiro wrapper…
eramos
  • 196
  • 1
  • 16
0
votes
0 answers

How do we upgrade the boost library version in the rhel 7.2 Current boost library version 1.53 , want to upgrade to version 1.54 and above

I want to generate libnghttp2_asio: High level HTTP/2 C++ library on rhel 7.2. libnghttp2_asio C++ library requires the following packages: libboost-dev >= 1.54.0 libboost-thread-dev >= 1.54.0 Current boost library installed on rhel 7.2 is version…
0
votes
1 answer

Enable HTTP2 in Apache 2.4.53

After reading this link, it's clear that HTTP2 and prefork don't work together. I am trying to get around this issue by disabling prefork in MPM. I went and changed the httpd-mpm.conf and commented out the following statements:
Adithya
  • 2,923
  • 5
  • 33
  • 47
0
votes
1 answer

What a connect message header should look like in http2?

I found that a get message header looks like: :method: GET :scheme: https :authority: server.net :path: /config accept: */* accept-encoding: gzip,deflate What a connect message header should look like? This example is from the RFC of http2: GET…
IGP
  • 37
  • 7
0
votes
0 answers

How can I get max number of concurrent streams supported by servere? (Http2.0 - library nghttp2; language: C)

I just started learning about HTTP2.0 protocol and the nghttp2 library. I started with the examples from the project (libevent-client.c (https://nghttp2.org/documentation/tutorial-client.html) and…
IGP
  • 37
  • 7
0
votes
0 answers

Where is easy.c and curl.c in libcurl?

I want to make the fastest http2 request in c. So I decided to open curl & nghttp2. I can find nghttp.cc in nghttp github, but cannot find curl.c & easy.c. I found only curl.h & easy.h. Where can I find those source files? I want to see source of…
Http2inc
  • 19
  • 4