curl.setopt(pycurl.SSL_VERIFYHOST, 2)
curl.setopt(curl.CAINFO, certifi.where())
# Set timeouts to avoid hanging too long
- curl.setopt(pycurl.CONNECTTIMEOUT, 30)
- curl.setopt(pycurl.TIMEOUT, 60)
+ curl.setopt(pycurl.CONNECTTIMEOUT, self.connect_timeout)
+ curl.setopt(pycurl.TIMEOUT, self.timeout)
# Parse Last-Modified
curl.setopt(pycurl.OPT_FILETIME, 1)
# ...but aren't accessible even through proxy
proxy_error = set()
+ connect_timeout = 30
timeout = 60
def __init__(self, *args, **kw):
WHAT'S NEW
+Version 5.4.1 (2024-08-04)
+
+ Separate connection timeout for PycURL robot.
+ Also will be used for aiohttp.
+
Version 5.4.0 (2024-08-02)
Robot based on PycURL.
+Version 5.4.1 (2024-08-04)
+
+ Separate connection timeout for PycURL robot.
+ Also will be used for aiohttp.
+
Version 5.4.0 (2024-08-02)
Robot based on PycURL.
setup(
name='bookmarks_db',
- version='5.4.0',
+ version='5.4.1',
description='Bookmarks database and Internet robot',
long_description=open('README', 'r').read(),
long_description_content_type="text/plain",