Questions tagged [http2]

HTTP2 (or HTTP v2.0) is an alternative to, but does not obsolete, HTTP1.1.

HTTP v1.1's underlying transport has several characteristics that have a negative overall effect on application performance today. HTTP/2 addresses these issues by defining an optimized mapping of HTTP's semantics to an underlying connection. Specifically, it allows interleaving of request and response messages on the same connection and uses an efficient coding for HTTP header fields. It also allows prioritization of requests, letting more important requests complete more quickly, further improving performance.

Source: RFC 7540 @ https://datatracker.ietf.org/doc/html/rfc7540
1819 questions
0
votes
1 answer

netty http/2 APNs Client (header frame, data frame)

I am creating a client to communicate with APNs. here is my requirement. jdk 1.6 http/2 tls 1.3 ALPN so I decided to make it using Netty. I don't know if I set the header and data well. Http2Client.java public class Http2Client { // static final…
0
votes
2 answers

Does C Have a Standard Library For HTTP2

[Intro]] I have been practicing C for 4 Months 5 times a Week, I am attempting to make the best possible guess for moving into web server/client programming for HTTP2. I have worked with HTML5 & Javascript I also work with HTTP2 & have used SPDY on…
0
votes
1 answer

Webflux Webclient - Error when sending HTTP2 requests as client to a HTTP2 enabled server

Small question regarding an issue while sending HTTP2 request to a server that is HTTP2 enabled please Caused by: io.netty.handler.codec.http2.Http2Exception: First received frame was not SETTINGS. Hex dump for first 5 bytes: 485454502f The…
PatPanda
  • 3,644
  • 9
  • 58
  • 154
0
votes
1 answer

Can't send http/2 request in Gatling

I've got a problem using gatling tool when trying to send http/2 request. I've enable http/2 setting in protocol settings, even added mapping to make sure that client will communicate with server using http2 but still request is send using…
Artem K
  • 5
  • 1
0
votes
1 answer

one grpc server for both unary and bidi stream with netty

I have a requirement to implement a grpc server in java which is capable of handling both grpc unary and bidirectional streaming.It is possible for the service that uses grpc bidi-streaming to send a large number of messages per second.(maybe 2000…
Lahiru Udayanga
  • 309
  • 4
  • 13
0
votes
1 answer

could not read from connection:remote error: tls: unknown certificate

I'm creating a low level HTTP/2 server in Go and for testing I want to use a self-signed certificate. I'm using openssl and this command to generate my certs: openssl req -x509 -newkey rsa:4096 -nodes -sha256 -subj /CN=localhost -keyout private.pem…
Luffy
  • 15
  • 1
  • 8
0
votes
1 answer

Why can't http2 streams be reused?

According to RFC7540: An HTTP request/response exchange fully consumes a single stream. A request starts with the HEADERS frame that puts the stream into an "open" state. The request ends with a frame bearing END_STREAM, which causes the stream to…
Andymang
  • 61
  • 6
0
votes
1 answer

Node HTTP2 request with remote proxy

I'm trying to run the following example in Node. It runs properly with HTTP/1.1 but fails with HTTP2: // Get an HTTP/1.1 tunnel: const req = http.request({ method: 'CONNECT', host: proxy.host, // This is a remote proxy which works properly with…
ajimix
  • 974
  • 7
  • 16
0
votes
0 answers

Node server delay

I have node js server running a script through pm2 daemon. sometimes the server cannot be connected to on the first try, a second try and the server can be connected to perfectly. I have now moved from http to http2 server base. any suggestions.
Dean Van Greunen
  • 5,060
  • 2
  • 14
  • 28
0
votes
1 answer

Reactor Netty Client ReadTimeoutException when using Http/2 causing PrematureCloseException

I am using a reactor-netty client and setting up http/2 via alpn. When I setup a ReadTimeoutHandler via the .doOnConnected(...) hook, I end up getting this exception: Jan 09, 2021 6:40:35 PM io.netty.channel.DefaultChannelPipeline…
0
votes
1 answer

x/net/http2: ConnState Unable to track

net/http package Server struct in the SDK have ConnState func(net.Conn, ConnState), But not exists in the 'Server' struct of 'x/net/http2' With the h2c feature, when the state variable is converted to http.StateHijacked , I will no longer know the…
fsyyft
  • 1
0
votes
1 answer

How to use TLS & HTTP/2 with Envoy Proxy

I am trying to use envoy in front of my Typescript React App for using gRPC from client to server. This envoy proxy sits inside a Docker container within a Kubernetes Cluster. My API Gateway Proxy is an NGINX proxy that does rate-limiting, filters,…
Ben Neighbour
  • 55
  • 3
  • 15
0
votes
1 answer

decompress gzip when receiving response using http2 module - NodeJS

const spdy = require("http2"); const zlib = require("zlib"); let payload = "<>" const client = spdy.connect("https://<< HOSTNAME >>"); let outdata = ''; const req = client.request({ ":authority": "<< Hostname >>", …
0
votes
1 answer

HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR

I have this configuration in my nginx : location ~* ^/test(.*) { add_header "Access-Control-Allow-Origin" $http_origin; add_header "Access-Control-Allow-Credentials" "true"; # PLEASE NOT THIS ONE, IT IS SEPARATED BY NEWLINE …
xemjas
  • 115
  • 4
  • 16
0
votes
1 answer

Test http2 in Azure api management and Azure app service backend

I have an Azure API Management and Azure app services as its backend. I have enabled http2 in both APIM and app services. But when I test the APIs from Azure portal, it takes http/1.1. How to force it to use http/2?