How are HTTP/2 connections managed? #1316
-
Greetings! Lovely library - I'm a big fan :) I was reading the docs, and saw that HTTP/2 is supported via a simple flag - rad! I'm curious:
The biggest advantage I see to using an HTTP/2 client over HTTP/1.1 is taking advantage of the multiplexing over an existing TCP/IP connection. I'd love to understand how this works. Full disclosure - I'm trying to figure this out in gaxios as well. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Sorry for late reply, I haven't been able to do much coding in the past month. I'm more than happy to answer your questions.
I could talk about this for ages: http2-wrapper/source/agent.js
Yes. There is a queue.
Good question. If a session's origin set is a subset of another session's origin set, it's closed. Another example is when
Got is using
Amazing! Please note that it doesn't support h2c (unsecure HTTP2). Note: OTOH, |
Beta Was this translation helpful? Give feedback.
Sorry for late reply, I haven't been able to do much coding in the past month. I'm more than happy to answer your questions.
I could talk about this for ages: http2-wrapper/source/agent.js
If you got any specific questions, please ask right away.
Yes. There is a queue.
Good question. If a session's origin set is a subset of another session's origin set, it's closed. Another example is when
maxFreeSessions
option is set to0
. A session can be created when …