20 retreies
This commit is contained in:
parent
9e76ed0684
commit
551df89f3f
@ -182,14 +182,14 @@ class CZDS:
|
|||||||
|
|
||||||
async def _download():
|
async def _download():
|
||||||
tld_name = url.split('/')[-1].split('.')[0] # Extract TLD from URL
|
tld_name = url.split('/')[-1].split('.')[0] # Extract TLD from URL
|
||||||
max_retries = 10 # Maximum number of retries for failed downloads
|
max_retries = 20 # Maximum number of retries for failed downloads
|
||||||
retry_delay = 5 # Delay between retries in seconds
|
retry_delay = 5 # Delay between retries in seconds
|
||||||
|
|
||||||
# Headers for better connection stability
|
# Headers for better connection stability
|
||||||
download_headers = {
|
download_headers = {
|
||||||
**self.headers,
|
**self.headers,
|
||||||
'Connection': 'keep-alive',
|
'Connection': 'keep-alive',
|
||||||
'Keep-Alive': 'timeout=600', # 10 minutes
|
'Keep-Alive': 'timeout=600', # 10 minutes
|
||||||
'Accept-Encoding': 'gzip'
|
'Accept-Encoding': 'gzip'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user