From 444c74439a9480f00c1835bf5e44c108a29476b9 Mon Sep 17 00:00:00 2001 From: tan Date: Wed, 17 Mar 2021 12:04:46 +0530 Subject: [PATCH] add CURLOPT_MAXAGE_CONN Added const for `CURLOPT_MAXAGE_CONN` definition and exported it. Useful to control how curl reuses connections. While the other most options for long lived connections are already present, connection maxage is also critical for cases where multiplexing is enabled. --- src/lC_common_h.jl | 3 ++- src/lC_exports_h.jl | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lC_common_h.jl b/src/lC_common_h.jl index f694f05..6a8c0cb 100644 --- a/src/lC_common_h.jl +++ b/src/lC_common_h.jl @@ -693,7 +693,8 @@ const CURLOPT_DNS_SHUFFLE_ADDRESSES = (UInt32)(275) const CURLOPT_TLS13_CIPHERS = (UInt32)(10276) const CURLOPT_PROXY_TLS13_CIPHERS = (UInt32)(10277) const CURLOPT_DISALLOW_USERNAME_IN_URL = (UInt32)(278) -const CURLOPT_LASTENTRY = (UInt32)(279) +const CURLOPT_MAXAGE_CONN = UInt32(288) +const CURLOPT_LASTENTRY = (UInt32)(10299) # end enum CURLoption const CURLOPT_XFERINFODATA = CURLOPT_PROGRESSDATA diff --git a/src/lC_exports_h.jl b/src/lC_exports_h.jl index 52468d7..7511574 100644 --- a/src/lC_exports_h.jl +++ b/src/lC_exports_h.jl @@ -1249,3 +1249,4 @@ export CURL_CSELECT_OUT export CURL_CSELECT_ERR export CURL_PUSH_OK export CURL_PUSH_DENY +export CURLOPT_MAXAGE_CONN