Add DNS cache ttl setting to aiohttp session. (#1514)

* Add DNS cache ttl setting to aiohttp session.
Also the limit argument is added to the session initializer.

This commit adds a setting for DNS cache ttl (time-to-live) to the aiohttp session configuration. This is implemented as a workaround for a known issue in aiogram as exhibited in aiogram/aiogram#1500.

* Added changelog
This commit is contained in:
Alex Root Junior 2024-06-17 02:51:35 +03:00 committed by GitHub
parent 835813ca2e
commit dcfc9632f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 3 deletions

1
CHANGES/1500.bugfix.rst Normal file
View file

@ -0,0 +1 @@
Increased DNS cache ttl setting to aiohttp session as a workaround for DNS resolution issues in aiohttp.