Closed alonrks closed 3 years ago
Thanks for the feedback, @alonrks!
We don't have any plans to work on this in the immediate future, but we agree that it's a reasonable and worthwhile thing to add.
If you're interested (or anyone following along is interested?) in sketching this out and sending a PR, we'd be happy to get stuck in and review/merge/release it.
Hey @alonrks :wave: We've just merged in #37 (thanks @conorbros :tada:) that uses http.Agent
in Node to re-use connections across batches.
Hi, we are using pino and pino-seq library. Performance tests show that opening and closing TCP connections impacts server performance negatively in 2 ways:
Do you plan to allow via configuration to keep sockets around even when there are no outstanding requests, so they can be used for future requests without having to reestablish a TCP connection like creating a custom http.Agent with keepAlive and other required options? Currently it sets HTTP header Connection to close.