Replies: 2 comments 9 replies
-
I'm interested in knowing about this as well! |
Beta Was this translation helpful? Give feedback.
1 reply
-
I would like to know if there are a difference in the use of the connections depending on if you use the |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to control my own 'keep-alive' as in re-using connections whenever I can and be in control of it, currently using the Undici.dispatch way, I would like to know how should I start? I'm thinking of re-using the same undici.Client for each hostname and put them in a Map and just retrieve them.
MAP[Hostname] = new undici.Client('https://www.google.com');
My main question is: If I'm doing so, will it be enough to guarantee that I'm re-using the same TCP connection? I would like to avoid the TLS handshake all the time but being able to just request anything (via dispatch Undici method) in the coming seconds without having to reconnect.
Thank you, still learning and I'm having difficulties
Beta Was this translation helpful? Give feedback.
All reactions