Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudflare DNS #9

Open
Polsulpicien opened this issue Jan 2, 2024 · 1 comment
Open

Cloudflare DNS #9

Polsulpicien opened this issue Jan 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Polsulpicien
Copy link
Member

Users with their DNS set as Cloudflare are experiencing +~6s per player when requesting players.

If aiohttp isn't told to use a TCPConnector of the AF_INET6 class, it takes longer to resolve the ip addres. Because some afaik Cloudflare doesn't like IPv4.
So just import the constant that represents the AF_NET6 family from socket and replace
From phiwijo

@Polsulpicien Polsulpicien added the bug Something isn't working label Jan 2, 2024
@phiwijo
Copy link
Collaborator

phiwijo commented Jan 2, 2024

That wrong btw :D
The actual issue is that cloudflare only answers with an AAAA record if you ask for both A and AAAA at the same time but both are expected.
Or however you want to interpret this:
image
For contrast:
image
This is when I use the DNS of my ISP
You can prevent it by using a TCPConnecter that only uses IPv6 or IPv4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants