-
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
[Bug] Error when closing Mink session on Windows #130
Comments
I thought that used Symfony's Process component should be dealing with that kind of errors. I'm not sure if stopping the Mink session, that used Zombie driver would actually terminate the Zombie's NodeJS process. Are you certain? |
I only described the behavior on Windows. I can't reproduce the isue on Linux. On windows, it seems terminating the Symfony process actually kills the node process too. It seems to be the same on linux, too. Of course, I'm only speaking about the behavior when doing a Another thing: When there is an error in the main process (for example if Another thing (but not related to this issue). On Linux (didn't try on windows yet as I only use a windows box at work for one of my clients), the sub-process is not killed if there is an error in the main process. This means the node process is still running in the background if there was an error while runing some code. I'll also investigate a little bit more on this second issue (or make a separate issue). |
We already have an issue for this: #120 . It's missing a PR though.
Isn't this the same as above issue? |
@stof , apparently Zombie now can be used on Windows. Can you please look into that? |
Actually, yeah. I went back and forth while writing my message, so I actually repeated myself. Sorry about that! And yeah, Zombie can indeed be used on windows. It requires VS2010/12/13 to be installed on the machine, to compile the native node module. |
@aik099 will try to check with my old computer when I have time (I'm on Ubuntu since september) |
We should post that somewhere: |
I wasn't able to install Zombie on Windows myself. @csarrazi , can you clarify on what |
Visual Studio. And yes, you need at least Visual Studio Express. |
Oh, and you may run into issues when compiling node-gyp if you use a visual studio >2010, if you don't specify the visual studio version using
Oh yeah, it's a real pain in the ***. ;) |
When stopping the server, the
Connection
class throws the following warning:As well as a
RuntimeException
with the following message: "unable to kill the process".Removing the following line from the abstract
Server
class actually fixes the issue.Seems to me that Node's runtime is actually faster than PHP, and for that reason, the node server actually closes the connection when running the server's
stop()
method. This means that the connection as well as the process are closed:The text was updated successfully, but these errors were encountered: