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
0 answers

HTTP2 bidirectional streaming with c++

I have 2 services written in c++ which have to run in separate PoDs with envoy proxy side car in each pod. Envoy proxies the requests to the service over HTTP2. I need to implement bidirectional streaming here. I came across nghttp2 and nghttp2 asio…
Neeraj Jain
  • 31
  • 1
  • 6
1
vote
0 answers

Assertion `!inside_callback_' failed

I am trying to write a server which calls another server, then, waits for its response and then sends back it's the response. So I have created a single libnghttp2_asio client session and using this to send requests to the other server in the…
UchihaItachi
  • 2,602
  • 14
  • 21
1
vote
1 answer

Is Nginx support http/2 upgrade from http/1.1 in clear text(h2c)

Is there any way to support http1.1 upgrade to h2c (not in ssl) in nginx? use curl test site http://nghttp2.org/ $ curl --http2 http://nghttp2.org/ -s -o /dev/null -v I get the following result: * Trying 139.162.123.134... * TCP_NODELAY set *…
Jiayu Wang
  • 21
  • 1
  • 4
1
vote
2 answers

http2 client failed to parse HTTP Upgrade response header

I'm tryng to use nghttpd server to test HTTP/2.0. To start it i'm using: nghttpd -v -d ~/Desktop/www 9000 --no-tls In client terminal, i type: nghttp -nvu http://127.0.0.1:9000 And i have this output in the client terminal [ 0.000] Connected [ …
lng z
  • 23
  • 6
1
vote
1 answer

How to gracefully stop a HTTP2 server built with nghttp2 asio

I am aware of how to use nghttp2 asio library to build HTTP2 server and client applications. The documentation says that there are stop and join APIs for gracefully stopping an HTTP2 server. Is there any working example of using stop and join? In…
Soumya Kanti
  • 1,429
  • 1
  • 17
  • 28
1
vote
0 answers

write settings for http2 session using nghttp2

I am using nghttp2 library in its c++ wrapper for building an application I would need to modify settings frame when creating the connection. Looking at API libnghttp2_asio I don't see any way to write settings frame. Could someone help me on…
RuLoViC
  • 825
  • 7
  • 23
1
vote
1 answer

how to use h2load to do benchmark for http2 server based on Netty?

When I use default no-tls protocol h2c of h2load, I find netty doesn't do upgrade because h2load doesn't send upgrade request. How can I do benchmark for clear-text http2 benchmark for my netty http2 server? Look forward to your reply. This…
Arthur Xu
  • 441
  • 1
  • 5
  • 12
1
vote
2 answers

nghttpd connection closed automatically

I'm tryng to use nghttpd server to test HTTP/2.0. To start it i'm using: sudo nghttpd --push=/test=/test1.png,/test2.pcapng,/test2.txt,/test3.png --no-tls --workers=3 --early-response -v 80. In my CWD i've got the push files. In another…
1
vote
1 answer

nghttp2 api.binance.com ssl error

I want to write a client for the api of binance.com using http/2. For this I am trying the library nghttp2, I've put in a test call to the api into their example code: int main(int argc, char *argv[]) { boost::system::error_code ec; …
Cola_Colin
  • 415
  • 5
  • 16
1
vote
1 answer

g++ libcurl static build fails on nghttp2 library

I have an application which uses the LibCurl library in combination with the nghttp2-library which I would like to statically link. The build command I use to build: i686-w64-mingw32-g++ -Wall Programm.cpp -o Programm.exe…
TVA van Hesteren
  • 1,031
  • 3
  • 20
  • 47
1
vote
0 answers

GoAway Frame With Invalid Control frame in http2

I have a proxy server that will do handshake with browser and read data from browser and then proxy server will connect to remote server and sends that data to remote server and vice versa. Both the connection (i.e: browser to proxy server and…
1
vote
0 answers

how to use nghttp2 to send data throught one stream_id on a opened steam before which is still avalable

I hava search this forum about nghttp2 about this, temporarily not found anything useful. I wrote a demo use nghttp2 to communicate with AVS. It's the AVS. 's Recognizer part. After I eastablished with the AVS. Server, I want to test AVS.'s…
oct.lin
  • 11
  • 3
1
vote
1 answer

nghttp2 asio connecting to Apple Push Notification times out

I'm using nghttp2_asio to connect to the Apple Push Notifications developer service. I'm trying to follow the APN guide as written: Keep your connections with APNs open across multiple notifications; do not repeatedly open and close connections.…
Mikey A. Leonetti
  • 2,834
  • 3
  • 22
  • 36
1
vote
1 answer

failed to install nghttp2 on centos6.5/6.8

I download the source from github:https://github.com/nghttp2/nghttp2. and install with step : $ autoreconf -i $ automake $ autoconf $ ./configure $ make Every step is OK,but I can not use it。 nghttp -bash: nghttp: command not found But ,I install…
yang.gao
  • 21
  • 5
1
vote
0 answers

Downchannel stream using C++ Libcurl HTTP2 - Alexa API V2

I am stuck with creating downchannel stream which is designed to remain open in a half-closed state from the client and open from AVS for prolonged periods of time. It receives JSON response from ALEXA API without making a request since it is open…
RDoonds
  • 485
  • 2
  • 6
  • 19