CURLOPT_MAXAGE_CONN: the maximum allowed age for connection reuse - #3782
CURLOPT_MAXAGE_CONN: the maximum allowed age for connection reuse#3782bagder wants to merge 2 commits into
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.