summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfsbs <fsbs@users.noreply.github.com>2022-02-11 22:03:11 +0000
committerfsbs <fsbs@users.noreply.github.com>2022-02-11 23:03:11 +0100
commit9a732a04ec3b48cbd6c4c3a6b21512529ab89599 (patch)
tree478d0f5056f9c5043f7002c322068e8ab4d792c9
parent3e792014dcd932e763838ed4c84aa7737d30edcd (diff)
downloadpycurl-9a732a04ec3b48cbd6c4c3a6b21512529ab89599.tar.gz
Add CURLOPT_MAXLIFETIME_CONN
Fixes #734
-rw-r--r--src/module.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/module.c b/src/module.c
index f75b84f..a256166 100644
--- a/src/module.c
+++ b/src/module.c
@@ -1076,6 +1076,9 @@ initpycurl(void)
#if LIBCURL_VERSION_NUM >= MAKE_LIBCURL_VERSION(7, 62, 0)
insint_c(d, "DOH_URL", CURLOPT_DOH_URL);
#endif
+#if LIBCURL_VERSION_NUM >= MAKE_LIBCURL_VERSION(7, 80, 0)
+ insint_c(d, "MAXLIFETIME_CONN", CURLOPT_MAXLIFETIME_CONN);
+#endif
insint_m(d, "M_TIMERFUNCTION", CURLMOPT_TIMERFUNCTION);
insint_m(d, "M_SOCKETFUNCTION", CURLMOPT_SOCKETFUNCTION);