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
0
votes
1 answer

How to test POST requests with h2load (nghttp2)

I am using h2load (nghttp2) to test a PHP served server. The request type should be POST. I use the following command, but get the error in server: h2load http://192.168.10.190:8009/echoservice/ping \ -d post_data \ -H 'content-type:…
0
votes
1 answer

How to link nghttp2 asio project using cmake

I have a project where I want to use the nghttp2 library. I am trying to link this project in CMakeLists.txt so that I can compile the following file with cmake. My project structure . ├── CMakeLists.txt ├── lib │   ├── Catch2 │   └── nghttp2 ├──…
user16516564
0
votes
2 answers

NgHttp2 invokes request data handler twice, for one single request

I am running a HTTP2 server by using nghttp2. I am trying to figure out why the on_data handler in the server.cpp is called twice. I know it's called twice because when I send a request that contains data, I get the following log output for a single…
user16516564
0
votes
1 answer

HTTP2 requests with 1 concurrent stream

Just to confirm. I have a simple http2 server which answers after 1 second, so forces a 1-second delay for every incoming request. Facts: Using h2load with single concurrent stream (-m 1), I have 1 req/second. So, even freeing the tatsuhiro…
eramos
  • 196
  • 1
  • 16
0
votes
1 answer

Linking nghttp2 static library

I want to compile a simple server app using nghtt2_asio in C++. It compiles perfectly under shared libraries: g++ server.cpp -O2 -std=c++20 -Wall -Wextra -lnghttp2_asio -lboost_system -lssl -lcrypto -o server But as I compile it statically: g++…
M3601
  • 82
  • 5
0
votes
1 answer

How can I solve the "empty response" error using nghttp2?

I'm using nghttp2_asio. I compiled it using ./configure --enable-asio-lib. Then, I added /usr/local/lib to /etc/ld.so.conf file. The code is as follows: #include "bits/stdc++.h" #include "nghttp2/asio_http2_server.h" using namespace std; using…
M3601
  • 82
  • 5
0
votes
1 answer

"nghttp2::asio_http2::client" with TLS 1.3 - SSL_CTX_set_cipher_list doesnt add cipher suite in cipher suites

I use nghttp2 asio_http2_client with TLS 1.3 protocol, but when i try to add additional suites in cipher suites list via SSL_CTX_get_ciphers function, i don't see anything changes in my Client hello message. I.e. cipher suites list stay without…
0
votes
0 answers

How to send a chunk of data using shlib(nghttp2) in esp32?

I want to use HTTP2 to POST data continuously. As I found, the only feasible solution is to use shlib. I can implement it and use it. But there were two problems that I faced: 1- shlib does not let us send a data bigger than 16KB theoretically.…
ALirezaSO
  • 49
  • 11
0
votes
1 answer

Cannot see the Http-Settings Header in the nghttp2 example

I am currently trying to learn nghttp2 and was trying to execute the client code which is provided at the bottom of this page: https://nghttp2.org/documentation/tutorial-client.html I executed the above C code doing the following: ./libevent-client…
Ujjawal Sharma
  • 63
  • 1
  • 1
  • 7
0
votes
1 answer

Enable HTTP2 Server Push Nginx

I installed nginx with HTTP2 support. My nginx is behind application load balancer and SSL termination is happening at LB only. I first enabled HTTP2_PUSH like below: http2_push_preload on; location /mx { http2_push…
coder
  • 283
  • 4
  • 26
0
votes
1 answer

How can I configure nghttpd to response differently based on the request?

When I start a server with nghttpd --no-tls -v 8444 And in another terminal I send a request nghttp -v -y http://127.0.0.1:8444 I see that the server saw my request and responded with 404. Is it possible to configure to respond differently based…
user3598726
  • 951
  • 2
  • 11
  • 27
0
votes
1 answer

Simplest, bare-bones HTTP2 Server example based on nghttp2

Anybody has a pointer to an example that implements a HTTP2 Server (in clear text mode) using nghttp2 ?
santos
  • 31
  • 4
0
votes
0 answers

How to make the curl command of buildroot support nghttp2?

I'm about to let my curl command support http2 protocol. As far as I know, nghttp2 is a package of http2. But there are many solutions just on Ubuntu, CentOS, MacOS. But the resource from web didn't mention too much on buildroot. So, could someone…
user3534541
  • 491
  • 1
  • 4
  • 4
0
votes
1 answer

What is wrong with my nghttp2.conf backend pattern?

Here is my nghttpx.conf file: frontend=0.0.0.0,3000 backend=127.0.0.0,9901;;proto=h2 frontend-no-tls=yes backend-no-tls=yes workers=1 log-level=INFO When I do: sudo nghttpx This error is thrown: 28/Nov/2017:15:33:30 +0900 PID19518 [ERROR]…
김민섭
  • 3
  • 1
0
votes
2 answers

how to receive more than 65535 bytes of data on http2 connection from AVS?

I have implemented an application in C language which communicates with Amazon AVS cloud using nghttp2 and openssl. I can get a response up to 65535 bytes only. If a response is greater than 65535 bytes than application can't receive the rest data…