-
Notifications
You must be signed in to change notification settings - Fork 49
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
Warning: socket_read(): unable to read from socket [10054]: An existing connection was forcibly closed by the remote host. #169
Comments
What if you try on Linux? |
It does not happen on Linux, no. |
I get the exact same warning.
I attached my full stacktrace. Also I use windows 7. Maybe it's an actual error in the socket implementation of PHP/Windows? |
I have upgraded to Windows 10 since submitting this, I'll see if its still a problem for me. |
My stack trace:
My composer.json: {
"require-dev": {
"behat/behat": "^3.3",
"behat/mink": "^1.7",
"behat/mink-extension": "^2.2",
"behat/mink-goutte-driver": "^1.2",
"behat/mink-zombie-driver": "1.4.x-dev"
}
} |
Maybe some of tested pages are taking too long to load and Zombie is dropping the connection? After #183 is merged you'll be able to specify Maybe the socket handling code can be improved to reconnect when broken socket is detected, but once connected we can't really restore browser state (e.g. opened page). |
BTW, the previous stack was on Windows. And what's interesting is that all the tests pass. So the pages did load successfully. It seems like the error only occurs during clean up. I checked the exit code returned by behat and it is set based on the tests passing, the warning doesn't seem to matter. |
@yaronyg Did you get that error on windows 7 or another windows version? It's a weird error and I can't reproduce it reliably. |
So I was seeing this on a windows 10 image in Azure. But I haven't seen this is a bit because I stopped using zombiedriver since it turned out our tests didn't need it. I just ran the tests again on my personal Windows 10 machine and made one of the tests use Zombie (by adding @javascript) and it repo'd. |
Your posts are two years ago and no answer; I have the same problem. |
I have tried using the Mink Zombie Driver on it's own, and as part of BehatMinkDriverExtension, and both ways I get this. After a test successfully passes and the test suite ends, I get this PHP warning:
PHP Warning: socket_read(): unable to read from socket [10054]: An existing connection was forcibly closed by the remote host.
in ***\vendor\behat\mink-zombie-driver\src\NodeJS\Connection.php on line 89
I'm not quite sure where to start on debugging or providing more info, so please ask for whatever and I'll try to provide it :)
I am using Windows 7
Composer require:
I also tried using it with the page objects extension and that doesn't work at all - at least this way, it works, but I get a PHP warning.
The text was updated successfully, but these errors were encountered: