eaf-base-api 2.4.4__tar.gz → 2.4.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {eaf_base_api-2.4.4/eaf_base_api.egg-info → eaf_base_api-2.4.5}/PKG-INFO +1 -1
- {eaf_base_api-2.4.4 → eaf_base_api-2.4.5}/base_api/base.py +8 -2
- {eaf_base_api-2.4.4 → eaf_base_api-2.4.5/eaf_base_api.egg-info}/PKG-INFO +1 -1
- {eaf_base_api-2.4.4 → eaf_base_api-2.4.5}/pyproject.toml +1 -1
- {eaf_base_api-2.4.4 → eaf_base_api-2.4.5}/LICENSE +0 -0
- {eaf_base_api-2.4.4 → eaf_base_api-2.4.5}/MANIFEST.in +0 -0
- {eaf_base_api-2.4.4 → eaf_base_api-2.4.5}/README.md +0 -0
- {eaf_base_api-2.4.4 → eaf_base_api-2.4.5}/base_api/__init__.py +0 -0
- {eaf_base_api-2.4.4 → eaf_base_api-2.4.5}/base_api/modules/__init__.py +0 -0
- {eaf_base_api-2.4.4 → eaf_base_api-2.4.5}/base_api/modules/config.py +0 -0
- {eaf_base_api-2.4.4 → eaf_base_api-2.4.5}/base_api/modules/errors.py +0 -0
- {eaf_base_api-2.4.4 → eaf_base_api-2.4.5}/base_api/modules/progress_bars.py +0 -0
- {eaf_base_api-2.4.4 → eaf_base_api-2.4.5}/eaf_base_api.egg-info/SOURCES.txt +0 -0
- {eaf_base_api-2.4.4 → eaf_base_api-2.4.5}/eaf_base_api.egg-info/dependency_links.txt +0 -0
- {eaf_base_api-2.4.4 → eaf_base_api-2.4.5}/eaf_base_api.egg-info/requires.txt +0 -0
- {eaf_base_api-2.4.4 → eaf_base_api-2.4.5}/eaf_base_api.egg-info/top_level.txt +0 -0
- {eaf_base_api-2.4.4 → eaf_base_api-2.4.5}/setup.cfg +0 -0
|
@@ -658,8 +658,8 @@ class BaseCore:
|
|
|
658
658
|
def initialize_session(self):
|
|
659
659
|
limits = httpx.Limits(
|
|
660
660
|
max_connections=getattr(self.config, "max_connections", 128),
|
|
661
|
-
max_keepalive_connections=getattr(self.config, "max_keepalive",
|
|
662
|
-
keepalive_expiry=
|
|
661
|
+
max_keepalive_connections=getattr(self.config, "max_keepalive", 4),
|
|
662
|
+
keepalive_expiry=10,
|
|
663
663
|
)
|
|
664
664
|
ctx = ssl.create_default_context()
|
|
665
665
|
if not self.config.verify_ssl:
|
|
@@ -870,6 +870,12 @@ class BaseCore:
|
|
|
870
870
|
|
|
871
871
|
# 429: rate limited — respect Retry-After if present, else backoff and retry up to cap
|
|
872
872
|
if status == 429:
|
|
873
|
+
if attempt == 0 or attempt == 1:
|
|
874
|
+
self.logger.info("Trying 429 bypass (Initializing new session...)")
|
|
875
|
+
del self.session
|
|
876
|
+
self.initialize_session()
|
|
877
|
+
continue
|
|
878
|
+
|
|
873
879
|
wait = self._parse_retry_after(response)
|
|
874
880
|
if wait is None:
|
|
875
881
|
# fall back to exponential backoff proportional to attempt
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|