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

Stuck in :closing state #62

Open
jakemack opened this issue Aug 30, 2018 · 2 comments
Open

Stuck in :closing state #62

jakemack opened this issue Aug 30, 2018 · 2 comments

Comments

@jakemack
Copy link

Hi, I'm trying to use this library to connect to a local instance of Chrome. I can connect, send messages, and receive responses, but when I call close on the driver, it gets stuck in the :closing state so the CloseEvent is never emitted.

My main issue is that I'm not quite sure what is supposed to happen at that point. It appears that this library is setting the status to closing and sending a close frame. I'm using tcpdump and it appears that Chrome is responding and my client is sending one more message after that.

My first thought is that perhaps I need to do something with the socket to parse and process that last message, but when I read it I get an EOFError, I assume because Chrome already closed its end of the socket.

I'm not quite sure where to go next or what to try, any thoughts? I'm using version 0.6.5 of the gem and the driver version being used is hybi-13.

@jcoglan
Copy link
Collaborator

jcoglan commented May 28, 2019

Are you able to provide a small example of what you're doing? My initial guess was that you're not passing Chrome's close frame response into the driver after calling close, so it never changes state, but it sounds like you are doing that.

@jakemack
Copy link
Author

jakemack commented Jun 4, 2019

It's been a while since I looked at this so I don't even fully remember. I'll try to make time to dig back into it in the next week or two and hopefully we can work through the issue. Hopefully it's just a matter of me using the gem slightly wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants