-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Windows Error: DNS query for google.com failed: too many retries #44
Comments
Thanks for reporting! What Windows version are you using? Perhaps you can try patching the |
Seeing the same error on my windows 10 gaming desktop. One test fails:
I'll make a PR with AppVeyor configuration, @clue or @cboden could you setup AppVeyor for this repository? |
Windows 10 + updates (not sure the exact build anymore, it changes without me knowing these days) ... I'll run the test suites when I get back... I'm sure it's probably related to php configuration on windows... One thing I did try already was increasing the timeout and retries, with same result |
Confirming that running the testsuite on windows gives the error quoted by @WyriHaximus. |
Windows 10 users of a library I develop are also experiencing this problem, I haven't been able to test as I don't have a Windows 10 machine. |
I have the same issue on windows server 2008 R2, but that is w7 basically, not w10. Any solution? |
Anyone found a temporary way of bypassing this bug? |
Will try and look into it tonight when I don't forget. Something you could try in the mean time is using your local DNS server (most likely your router) instead of the Google's DNS server ( |
@WyriHaximus Already tried workarounds like that. Doesn't help. It seems to be a problem only on windows though. Setting in system DNS servers, hardcoding DNS servers or even manually inserting the resolved IP in the hosts file does not help the problem. |
@kassmed Bonkers does UDP work at all on windows? You could use https://github.com/reactphp/datagram/tree/master/examples to test that |
@WyriHaximus Seems to work fine on localhost, but externally i get the same error. Here is a picture of both runs: |
@kassmed don't let datagram do the DNS look up, provide it an IP instead of a hostname to work around that |
@WyriHaximus Well now i can make my websocket connect, but now i just have the problem that the CN does not match the certificate when using wss, so the connection handshake fails. |
@WyriHaximus I managed to make a REALLY dodgy bypass. In react\socket-client\src\SecureConnector.php i found the line: Here i just hardcoded the hostname of what i wanted to connect to, but let the socket connect to the IP directly without DNS lookup. |
@WyriHaximus Well, that fix turned out to not work 100% for me, but it might help someone else. |
@kassmed on my way home now, will look at it after dinner 😄 |
@kassmed haven't had any success yet, will keep trying the rest of the week. Can reproduce the results in native git and the ubuntu sub system on windows. But it's working fine from within a vagrant box on the same machine. |
No idea if this helps at all. |
Does the request look like its formatted correctly in my pastebin ? |
This appears to be a problem with how PHP handles UDP streams when stream_get_contents is called with a maxlength set, specifically on windows systems. I submitted a php bug report about this here: https://bugs.php.net/bug.php?id=74090 A fix is to change public $bufferSize = 65536 to $bufferSize = null in react/stream/src/Stream.php |
Testing buffersize fix on a windows machine now. EDIT: This works fine, I'll try and get a PR done when I'm awake for you if its not happened all ready. |
PR made reactphp/stream#65 |
@micksam7 Thank you! Been struggling to figure that out, I guess I just assume PHP works flawlessly :/ |
Note: Issue also affects Windows Server 2012 R2. |
Closed via #53 |
I'm having the very same problem on my phone.Operating system is Android 7.0 |
@ScorpioKC We're not aware of any issues currently. Can you give some instructions on how to reproduce the problem you're seeing? Also, output of |
The code used is (using v0.4.3):
The command:
The error:
Is there any way I can debug this further to find out what's causing this? The same code on my linux box works just fine...
The text was updated successfully, but these errors were encountered: