-
Notifications
You must be signed in to change notification settings - Fork 210
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
ssl only: Error reading data from socket: Not connected #80
Comments
Ok, Also started to notice weird things when I send a chat msg. WebSocket - status 0 Notice how the first msg was never "sent" (hence did not receive immediately). What is going on? I had same problem with my other project, and so I decided to download a fresh new Wrench copy. Please someone explain. Help!!! |
I am using helper for the workaround. Workaround:
|
Hi! |
@Alarmfifa It did not look like anything to do with Large Messages, as I was only send "asdf". But thank you for your reply. @emadruida Your fix did the trick. Thank you both for quick reply. |
"Large message" isn't only for message data. It is about full http message with it's header (cookies for example). |
The fix mentioned by @emadruida has been merged into v2.0.8 (and v3.0.x-dev) (9dd8175) - let me know if that fixes things |
Chrome gives this error:
WebSocket connection to 'wss://server.somewhere:8000/echo' failed: WebSocket opening handshake was canceled
I get this error when testing server_ssl.php in cli:
root@m1048:/var/www/html/Wrench-master/examples# php -q server_ssl.php
info: Server initialized
info: Wrench\ConnectionManager: Wrench\Connection: 80.xxx.xxx.xxx:61207 (38bcbf66a45efe6f76292087dacb1b3fdbb35262dcce1d98c5473f0d4ba62794e0126f634cc264c519727021553be8b420fcb795f3f53eb6aa82cc7d7725a7c2): Connected
notice: Wrench\ConnectionManager: Client connection closed: exception 'Wrench\Exception\CloseException' with message 'Error reading data from socket: Not connected' in /var/www/html/Wrench-master/lib/Wrench/Connection.php:396
Stack trace:
#0 /var/www/html/Wrench-master/lib/Wrench/ConnectionManager.php(243): Wrench\Connection->process()
#1 /var/www/html/Wrench-master/lib/Wrench/ConnectionManager.php(168): Wrench\ConnectionManager->processClientSocket(Resource id #32)
#2 /var/www/html/Wrench-master/lib/Wrench/Server.php(198): Wrench\ConnectionManager->selectAndProcess()
#3 /var/www/html/Wrench-master/examples/server_ssl.php(54): Wrench\Server->run()
#4 {main}
warning: Wrench\ConnectionManager: Wrench\Connection: 80.xxx.xxx.xxx:61207 (38bcbf66a45efe6f76292087dacb1b3fdbb35262dcce1d98c5473f0d4ba62794e0126f634cc264c519727021553be8b420fcb795f3f53eb6aa82cc7d7725a7c2): Unable to send close message
This does not happen in normal plain "server.php" test, only in ssl.
The text was updated successfully, but these errors were encountered: