Questions tagged [http2]

HTTP/2 is the new version of the popular HTTP protocol

0
votes
1answer
47 views

How to do HTTP/2 stream prioritization in an ASGI server?

I'm trying to implement the http/2 stack in my own app server which I've built from scratch using asyncio. As per my understanding, asyncio maintains a "tasks" queue internally which is used by the ...
1
vote
1answer
29 views

HTTP2 does not yet support etags?

I am currently making a server for dynamic and static files with Node. I'm trying to implement HTTP2. What surprises me is that it seems that the HTTP2 push does not support ETags! When the client ...
1
vote
1answer
12 views

HTTP2 DNS lookup on existing connection

I have a code sample from node.js api docs: const http2 = require('http2'); const fs = require('fs'); const client = http2.connect('https://localhost:8443', { ca: fs.readFileSync('localhost-cert....
0
votes
1answer
27 views

Are there any plans for okhttp to implement http2 using async sockets?

OkHttp seems to use blocking I/O and one thread per stream in its http2 implementation. Are there any plans for okhttp to implement http2 using async sockets?
0
votes
0answers
14 views

alternative technologies for implementing REST over HTTP/2 with java for client-server application

I want to implement a client-server application for resource discovery purposes in IoT PaaS. Beside client and server parts, I have third party broker as well. For that reason I want to use REST over ...
1
vote
1answer
39 views

fail to use streaming in http2 in golang

How to reuse http2 stream in golang? Hi all, recently I tried many ways to reuse a stream to send http2 data but failed, and I didn't find many related solutions in http2, can anyone give me some ...
1
vote
0answers
17 views

How to access the HTTP/2 stream id in the send callable to the asgi app?

I'm building an ASGI application server in python and implementing the HTTP/2 protocol. I receive raw bytes from a socket, parse the bytes and convert them into frame objects. When I trigger the ASGI ...
0
votes
1answer
27 views

How does one send a REST request to an annotated GRPC endpoint?

I am not receiving a valid response when curling the REST annotated endpoint from the GRPC protobuf I'm currently running the bookstore server from here I've been able to hit the endpoint ...
0
votes
0answers
17 views

Disable HTTP2 in IE11

I encountered problems in IE11 in combination with HTTP2 (SCRIPT7002: XMLHttpRequest: Network Error 0x2eff, Could not complete the operation due to error 00002eff.). These seem only to occur with IE11 ...
1
vote
1answer
42 views

How to get HTTP/2 working in a Kubernetes cluster using ingress-nginx

We have a number of services behind an API gateway which is itself behind ingress-nginx. We're trying to use HTTP/2 to speed up data transfer to the front-end but all of our connections are still ...
0
votes
0answers
11 views

Increase of ClientAbortException after switching to http/2

Since we switched to http/2 we see a lot of ClientAbortException. Either Broken Pipe or Connection reset by peer. The setup is Client <-> HAProxy <-> Spring Boot 2 application with embedded ...
0
votes
1answer
14 views

Apache reverse proxy by HTTP/2 will lost MIME-type and use default

English is not my native language, please excuse typing errors. I configure Apache reverse proxy as follow, and it works fire. ProxyRequests Off SSLEngine On SSLProxyEngine On ProxyPass / https://...
1
vote
1answer
38 views

HTTP/2 Push promise behavior

I am working on writing a resilient client for HTTP/2. I am wondering what should be the behavior of the client, if the server sent a PUSH_PROMISE and then failed to send the PUSH_RESPONSE, related to ...
0
votes
1answer
13 views

CDN-server with http/1.1 vs. webserver with http/2

I have a hosted webserver with http/2 (medium fast) and additionally I have a space on a fast CDN-Server with only http/1.1. Is it recommended to load some ressources from the CDN or should I use only ...
0
votes
1answer
28 views

http2 max concurrent streams

I'm a noob about http2 but I think that my issue is related to this. First of all I have this wordpress website https://anekitalia.com that is hosted in my company huge cluster. This is an lxc debian9 ...
-1
votes
1answer
44 views

Sending HTTP/2 request via Socket in Java

I'd need to send an HTTP/2 request via a TCP socket from my Java classes. I've adapter a piece of code which works for plain HTTP/1.1. However it does not output any response nor error code when using ...
0
votes
0answers
22 views

Getting error while configure SSL with Tomcat9

when trying to run the command "catalina.bat run" it gives APR/native library is not available. How to add this library? 05-May-2019 04:17:23.138 SEVERE [main] org.apache.catalina.util.LifecycleBase....
1
vote
1answer
49 views

Do we still need a connection pool for microservices talking HTTP2?

As HTTP2 supports multiplexing, do we need still a pool of connections for microservice communication? If yes, what are the benefits of having such a pool? Example: Service A => Service B Both ...
1
vote
1answer
71 views

Netty HTTP2 Frame Forwarding/Proxing - pipeline config question

I'm trying to create a Netty (4.1) POC which can forward h2c (HTTP2 without TLS) frames onto a h2c server - i.e. essentially creating a Netty h2c proxy service. Wireshark shows Netty sending the ...
0
votes
1answer
10 views

How to fix HTTP/2.0 504 Gateway Timeout for multi simultaneous XHR connections when using HTTP/2

I activate HTTP/2 support on my server. Now i got the problem with AJAX/jQuery scipts like upload or Api handling. After max_input_time of 60sec for php i got: [HTTP/2.0 504 Gateway Timeout 60034ms]...
0
votes
0answers
16 views

Nginx HTTP/2 Server Push not work for JSON (“as=fetch”) payloads

I've made a local setup with Nginx v1.15.5 and, while it works correctly for scripts (as=script), it's not pushing the JSON (as=fetch) payloads. Is there a way to make Nginx perform the Server Push ...
0
votes
0answers
25 views

Node JS HTTP2 server TLS connection wont establish

Trying to create a basic HTTP2 Static server on Node 12. This is my web server class/function : import fs from 'fs'; import http2 from 'http2'; export default function(hostedPath, p, Debug){ ...
0
votes
0answers
42 views

How to receive http2 serverpush data in angular 7?

Ive implemented node app to send live data to client using http2 server push instead of socket communication. I've set-up node client app to receive http2-serverpush data, but ive to implement the ...
0
votes
1answer
25 views

Will HTTP/2 in Azure App Service auto fallback to HTTP/1.1 for legacy browsers

I want to turn on HTTP/2 for my web app hosted by Azure App Service. However, 1% of my users are using browsers that doesn't support HTTP/2. Does Azure App Service automatically fallback to HTTP/1.1 ...
0
votes
2answers
68 views

Simple http2 NodeJS Server from official docs & postman not working

I am learning how to build an http2 server with NodeJS 10 LTS official documentation. I copy pasted the server side code into server.js and run node on it, but when I try to connect with postman (REST ...
1
vote
1answer
27 views

HTTP/2 COMPRESSION_ERROR issue

I'm working on a server-side HTTP/2 implementation. Sometimes clients disconnect with a GOAWAY.COMPRESSION_ERROR in response to the server headers. According to the Via header, in all of those cases, ...
0
votes
0answers
40 views

okhttp3.internal.http2.StreamResetException: stream was reset: CANCEL

After switching server API from HTTP/1.1 to HTTP/2 could not parse the response val retrofit = Retrofit.Builder() .baseUrl(BuildConfig.BASE_URL + BuildConfig.API_VERSION) ...
0
votes
0answers
126 views

Replace WinHttpHandler with cross-platform .NET Standard implementation

I use WinHttpHandler to send iOS HTTP/2 push notifications. See code here. Is there a better (cross-platform) way to enable HTTP/2 HttpClient support in .NET Standard? Is .NET team planning to ...
0
votes
0answers
24 views

Why is my firebase-hosting site not being served by http2?

My firebase site critical-edge-1@firebaseapp.com is not being served over http/2. Not sure why, all sites are supposed to be. I am using Hugo site generation. Thoughts?
0
votes
0answers
39 views

How to use http/2 in Spring? [duplicate]

I read it: https://github.com/spring-projects/spring-framework/wiki/HTTP-2-support#reactor-netty and was able to figure out how I can configure spring boot application to support http2(server side) ...
0
votes
0answers
19 views

How to differ non-http traffic on 443 port from http2 before parsing frame payload?

It was easy to detect non-http requests going through proxy when using only HTTP/1.1. Doing the same is not applicable for HTTP/2. The project I am working on inspects http data, and must bypass non-...
0
votes
1answer
122 views

Deploy Rest + gRPC server deploy to k8s with ingress

I have used a sample gRPC HelloWorld application https://github.com/grpc/grpc-go/tree/master/examples/helloworld. This example is running smoothly in local system. I want to deploy it to kubernetes ...
0
votes
0answers
50 views

Testing HTTP/2 using Go

I would like to check if the server supports HTTP2 using Go. Trying to implement a code in Go checking the HTTPS Web server in a similar way than the following command: > openssl s_client -...
0
votes
0answers
63 views

Okhttp multiple response handling for single request android

I have an android application and I am trying to make an http/2 call with okHttp version 3.13.1, in my case for one request I will be receiving two responses sequentially from the server, but with the ...
3
votes
1answer
38 views

What is the index number in static table for :protocol pseudo-header in http2?

I was making project which identifies websocket connections. As websocket connection way is changed in HTTP2, there was added a new pseudo-header ":protocol" as it is said in RFC8441. But I can't find ...
0
votes
0answers
24 views

Convert hyper.HTTP20Response.read() to requests.models.Response.content

I would like to convert hyper.HTTP20Response.read() to requests.models.Response.content This works: resposne2 = c.get_response() // Http/2 response response1 = Response() //create Http/1.1 response ...
0
votes
0answers
209 views

Does anybody encountered an ERR_SPDY_PROTOCOL_ERROR on request to the Here Maps tile server?

It happens from the time to time on Chrome-based Chrome-based and Firefox browsers (fully updated versions, clean installs, also in incognito modes), on some (but not all) Windows machines. Example ...
0
votes
1answer
58 views

How does GRPC work in Cloud Foundry? GoRouter doesn't support HTTP2

I need to use GRPC for inter communication between 2 micro services. But by default, cloud foundry use Go router that doesn't support Http2. And by default, many of cloud foundry installation doesn't ...
-2
votes
2answers
33 views

What does HTTP 1.x lack to allow multiplexing like HTTP 2

I know that HTTP 1.1 supports pipelining, where multiple requests can be sent over single connection but these requests need to be served by server in the same order they were sent from the client. ...
1
vote
0answers
27 views

ERR_SSL_PROTOCOL_ERROR after http2 enabled

I'm setting HTTP2 for my application and I get randomly ERR_SSL_PROTOCOL_ERROR onm y browser. I was using Let's Encrypth to encrypt with SSL and everything was working well. The problem occurend after ...
3
votes
0answers
51 views

How to send HTTP/2 headers immediately when using PHP-FPM and Apache

I can't seem to be able to send headers immediately from PHP when running as FPM. They are sent only at the end of the request, along with the content. I have an Apache + PHP-FPM setup. I have ...
0
votes
1answer
74 views

curl post request is not working with option --http2, but it works fine when I use --http2-prior-knowledge

I have created spring-boot application with tomcat 9.0.16, spring-boot 2.1.3.RELEASE, JDK1.8. When I am making curl post request with --http2 its saying "curl: (56) Recv failure: Connection reset by ...
0
votes
1answer
40 views

HAProxy example for sending h2c traffic to backend with SSL termination

I would appreciate some help getting my HA-Proxy instance set up to accept h2 or http/1.1 traffic and perform SSL termination using the http mode. I have tried the following setup: frontend local_fe ...
0
votes
2answers
96 views

How to use HTTP2 behind AWS Network Load Balancer terminating SSL

I have the following setup: client --> AWS NLB (terminates SSL) --> nginx --> webserver How can I get nginx to serve content over HTTP2? Enabling it on the nginx server config just causes ...
1
vote
0answers
48 views

HTTP2 protocol with URLSessionStreamTask

I am trying to build iOS client side of Alexa Voice Services. I am stuck at the networking layer. Interaction with Alexa Server requires creation of mainly two streams over a single connection. After ...
1
vote
0answers
67 views

Abnormal Heap memory allocation in HTTP2

I am building a Messaging Service using Tomcat Server. I am also using HTTP2 network protocol (+ Nio) and configured Tomcat Connector to use that. When tested with few users, my JVM heap increases ...
1
vote
2answers
30 views

How to update a Ruby on Rails website form http 1 to http 2

Currently using Rails 5.2 and Ruby 2.3 with the server: Nginx with passenger please tell the changes that are required to update the website from HTTP version 1 to HTTP 2. Virtual Host : server {...
0
votes
1answer
48 views

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 ...
2
votes
1answer
49 views

How to get request body in Node.js HTTP2?

I have the following code, but no idea how to get the body from the request: var http2 = require('http2'); var fs = require('fs'); var server = http2.createSecureServer({ key: fs.readFileSync('...
0
votes
1answer
33 views

cpu usage comparison of http2 and http1 requests

Sending 400 HTTP/1 requests is generating 90% CPU usage, while, sending 150 HTTP/2 requests is generating 80% CPU usage. Why does HTTP/2 take more CPU usage relative to HTTP/1 using curl command?

http://mssss.yulina-kosm.ru