Skip to content

Q about agent and keepAliveMaxTimeout #3329

Answered by mcollina
nocquidant asked this question in Q&A
Discussion options

You must be logged in to vote
  1. 1st question: When I use a per-request agent, do I have to explicitly close it?

Likely so

2nd question: Regarding keepAliveMaxTimeout, is the check done before getting a connection from the pool (which could happen after keepAliveMaxTimeout seconds if there is no activity)? Or is there a timer or something that will wake up after an inactivity period of keepAliveMaxTimeout seconds, and close the connection?

The check is done inside the client to verify if the connection must be reset.


You'd get best performance by having a short keep alive and reusing the agent

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by nocquidant
Comment options

You must be logged in to vote
1 reply
@mcollina
Comment options

Comment options

You must be logged in to vote
6 replies
@nocquidant
Comment options

@mcollina
Comment options

@nocquidant
Comment options

@mcollina
Comment options

@nocquidant
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants