austgl / phpws

Automatically exported from code.google.com/p/phpws
0 stars 0 forks source link

WebSocketConnectionHixie->disconnect calling socket->close() instead of socket->disconnect() #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. on Hixie connection
2. disconnect just after sending a message

What is the expected output? What do you see instead?
should send message before disconnecting but
the connection get closed before the message is sent.

Original issue reported on code.google.com by nyki.n...@gmail.com on 16 Jan 2012 at 10:40

GoogleCodeExporter commented 9 years ago
Seems to be a bug indeed, I have changed websocket.protocol.php line 304 to:

[[$this->_socket->disconnect();]]

Think this will fix it, have pushed the same change to git.

Thanks for reporting this bug and let me know if there are further problems.

Chris

Original comment by ch...@devristo.com on 23 Jan 2012 at 5:07

GoogleCodeExporter commented 9 years ago

Original comment by ch...@devristo.com on 22 May 2012 at 7:46

GoogleCodeExporter commented 9 years ago
I´m getting the same problem with Hybi connection. Any idea?

Original comment by yor...@gmail.com on 8 Jun 2012 at 2:23

GoogleCodeExporter commented 9 years ago
Are you disconnecting from the server-side or the client-side?

Original comment by ch...@devristo.com on 9 Jun 2012 at 9:19