Node.js 19 has arrived. The latest update to the popular JavaScript runtime enables HTTP Keep-Alive by default, a change that should deliver better web throughput.

Accessible from nodejs.org, Node.js 19 was released October 18. Beginning with this release, Node.js sets

1
keepAlive

to true by default. Thus any outgoing HTTP(S) connection automatically will use HTTP 1.1 Keep-Alive, providing better throughput as connections are reused by default. There is a default waiting window of five seconds. Additionally, Node’s HTTP Agent is able to parse the response

1
Keep-Alive

that servers might send. This header instructs the client on how long to stay connected. The Node HTTP server now will automatically disconnect idle clients when

1
close()

is invoked.

To read this article in full, please click here


0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *