Skip to content

Commit 444c744

Browse files
committed
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.
1 parent e70e390 commit 444c744

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/lC_common_h.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,8 @@ const CURLOPT_DNS_SHUFFLE_ADDRESSES = (UInt32)(275)
693693
const CURLOPT_TLS13_CIPHERS = (UInt32)(10276)
694694
const CURLOPT_PROXY_TLS13_CIPHERS = (UInt32)(10277)
695695
const CURLOPT_DISALLOW_USERNAME_IN_URL = (UInt32)(278)
696-
const CURLOPT_LASTENTRY = (UInt32)(279)
696+
const CURLOPT_MAXAGE_CONN = UInt32(288)
697+
const CURLOPT_LASTENTRY = (UInt32)(10299)
697698
# end enum CURLoption
698699

699700
const CURLOPT_XFERINFODATA = CURLOPT_PROGRESSDATA

src/lC_exports_h.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,3 +1249,4 @@ export CURL_CSELECT_OUT
12491249
export CURL_CSELECT_ERR
12501250
export CURL_PUSH_OK
12511251
export CURL_PUSH_DENY
1252+
export CURLOPT_MAXAGE_CONN

0 commit comments

Comments
 (0)