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

How resource requests maps into streams in HTTP/2

I could not found this RFC, and I'm wondering are there any rules regarding how resource requests from HTTP/2 Client are mapped into HTTP/2 streams. Is it one-to-one, where each stream represents data for one resource request (e.g. image, js, html)…
Midi
  • 459
  • 1
  • 5
  • 19
0
votes
1 answer

Performance Issue with Http2 vs Http1.1

I have upgraded to HTTP2 from http1.1 for a tomcat9 application. After this upgrade, I can see that the performance of the rest APIs is slow. I ran a load test for 1000 samples and as a result, HTTP1.1 has better throughput and average response time…
theNextBigThing
  • 131
  • 3
  • 14
0
votes
1 answer

Enabling HTTP/2 on Azure

My Azure hosted Web Site has the following configuration (see image). So I believe I have enabled HTTP/2. However, when I access it from Edge/Chrome and in the Development options choose "Report". I get (see image): IGNORE the "localhost" bit. I…
Rob L
  • 2,124
  • 3
  • 22
  • 50
0
votes
0 answers

RoundTrip failure: stream error: stream ID 1; PROTOCOL_ERROR in net/http golang

I am trying to stream a file in chunks from client to server (grpc) and then from grpc server send that file to another server by http post request. But I am keep getting this error when I try to send chunks of file to the other server by HTTP POST…
Quang Võ
  • 121
  • 1
  • 9
0
votes
1 answer

How does the server recognize the header compression of different clients in HTTP2

According to the http2 protocol, the client and the server need to maintain the same static and dynamic dictionary. For a server, it receives compressed headers from many different clients. For the header compressed content sent by a client, will it…
Mr.Tan
  • 3
  • 3
0
votes
0 answers

Does HTTP/2 support multiplexing when upload multiple files

I know that multiplexing is a feature of HTTP/2 and I've found plenty of examples that show how it works when downloading more resources, but does HTTP/2 support multiplexing when upload multiple files? Can you share an example (Java is preferred)…
freedev
  • 25,946
  • 8
  • 108
  • 125
0
votes
2 answers

how to use Multiplexing http2 feature when uploading

There should be a significant improvement of performance using multiplexing http2 feature when uploading multiple files. And Java has an httpclient which supports natively the HTTP/2 protocol, so given that I tried to wrote the code for my own…
freedev
  • 25,946
  • 8
  • 108
  • 125
0
votes
1 answer

HTTP/2 PYTHON AttributeError: 'NoneType' object has no attribute 'write'

HTTP/2 is a major revision of the HTTP network protocol used by the World Wide Web. The primary goals for HTTP/2 are to reduce latency by enabling full request and response multiplexing, minimize protocol overhead via efficient compression of HTTP…
NNN
  • 41
  • 3
0
votes
1 answer

How to avoid http2 connect from crashing Node.js

const client = http2. connect('https://domain.doesnt.exist'). on('error', e => { console.error(e.message); }); On Node.js 13.6.0, even when provided an error listener, the above code would crash the entire process. How will I be…
Aero Wang
  • 8,382
  • 14
  • 63
  • 99
0
votes
1 answer

WinHTTP over HTTP/2 with multiplexing

I'm wondering if it is possible with the Windows API WinHTTP to use HTTP/2 multiplexing (multiple requests over one TCP connection). If so, is there example code how to archieve this? I found this message from Microsoft…
nwrobel
  • 1
  • 1
0
votes
1 answer

Install HTTP version 2 using directadmin with letsencrypt on centos 7 server

I want to install and activate HTTP.2 on my Centos 7 server. I have Openssl with this version: rpm -qa | grep -i openssl : openssl-devel-1.0.2k-16.el7_6.1.x86_64 openssl-1.0.2k-16.el7_6.1.x86_64 openssl-libs-1.0.2k-16.el7_6.1.x86_64 and…
Kiyarash
  • 2,437
  • 7
  • 32
  • 61
0
votes
1 answer

php7.4, php7.4-fpm, http2, Apache, nginx

Can I use php7.4-fpm with Apache? Or is php-fpm really only for use with nginx? And why? Does php7.4 support http2? Or do you still need php-fpm? The official http2 site (http2.pro) hasn't been updated in a couple of years. Still worth activate…
alebal
  • 5,838
  • 3
  • 10
  • 28
0
votes
1 answer

Istio 1.1.11 not supporting http2?

I recently asked this question on how to upgrade Istio 1.1.11 from using http1.1 to http2. I followed the advice and my resultant services YAML looks like this.…
Anoop Hallimala
  • 625
  • 1
  • 11
  • 25
0
votes
1 answer

require("http2") in angular 7

I want to use http2 for client side in my angular project. const http2 = require("http2"); const client = http2.connect("http://localhost:8443"); const req = client.request({ ":path": "/" }); When I wrote this code block for http2 request, I…
Arya
  • 43
  • 1
  • 6
0
votes
0 answers

State of Express.js

I'm migrating an app to Node 12. It still uses the npm module "spdy" to make HTTP/2 available to Express. Unfortunately, "spdy" doesn't run on Node 12: spdy issue handle-thing issue So I decided to give Node.js's HTTP/2 module a chance (reducing…
Newlukai
  • 549
  • 5
  • 16
1 2 3
99
100