New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CURLOPT_MAXAGE_CONN: the maximum allowed age for connection reuse #3782
Conversation
I suggest a ref to #3722 in your commit message since some discussion took place there. |
I elaborated on this change a bit on the mailing list and opened for feedback. |
e206287
to
6750797
Compare
oops! |
4da30d1
to
d5a39d3
Compare
I think forcing it to 120s isn't ok for those who intentionally rely on |
As you can see in this patch set, it is now configurable and is at 118 seconds by default. |
TCP KEEPALIVE is rarely helping beyond the first few minutes since the time here is usually limited by how long the remote server keeps the connection alive. That's commonly limited to a few minutes at the most. |
... and disconnection too old ones. The limit is right now set hardcoded
to 120 seconds. We can consider offering a configurable value in the
future.