summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Pudeyev <p@users.noreply.github.com>2022-03-09 17:37:28 -0500
committerGitHub <noreply@github.com>2022-03-09 17:37:28 -0500
commitb300c04e76d8209a04e26fb85d1ac74bf02458b7 (patch)
tree1647f28b69259f92ae0a76b000154b72c32b034b
parent6e3565cd56fa59af739e26f3cb6876c8b7bb5482 (diff)
parent9a732a04ec3b48cbd6c4c3a6b21512529ab89599 (diff)
downloadpycurl-b300c04e76d8209a04e26fb85d1ac74bf02458b7.tar.gz
Merge pull request #735 from fsbs/maxlifetime-conn
Add CURLOPT_MAXLIFETIME_CONN
-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);