TIL that the default http.Agent used by nodejs does not enable keep-alive, so a new TCP/TLS connection is established for every single outgoing HTTP request. This is very wasteful. We should enable keep alive at least for the requests we make through the Thingpedia Http helpers.
TIL that the default http.Agent used by nodejs does not enable keep-alive, so a new TCP/TLS connection is established for every single outgoing HTTP request. This is very wasteful. We should enable keep alive at least for the requests we make through the Thingpedia Http helpers.