Closed nussbaumer-dominik closed 6 years ago
Could you fix it?
yes the error was caused by another issue unrelated to this library...
Am Fr., 27. Apr. 2018 um 14:15 Uhr schrieb Alexander von Weiss < notifications@github.com>:
Could you fix it?
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Textalk/websocket-php/issues/54#issuecomment-384952734, or mute the thread https://github.com/notifications/unsubscribe-auth/AVAKEzAglqTU1s1FzJbOGo7THcG1EPT5ks5tswvmgaJpZM4TLc5Q .
-- Dominik Nußbaumer
Are you able to share more information? I'd appreciate it.
We hit this issue on CI, but it's not reproducable locally. So I guess something on the server is interrupting the socket.
Ok. In our diploma thesis we created a unified interface to control the different devices for presentations. These devices include a projector, an AV-Receiver, a mixer and DMX Lighting. We communicate via three technologies: Infrared, DMX and WebSockets. Since the volume on the AV-Receiver can only be increased or decreased - we start by sending commands until it has reached 0. Meanwhile the connection with the mixer has to be kept alive by sending a specific command every second over your WebSocket client library. When the infrared diode is finished the websocket library isn't able to send for a couple of seconds and when it starts sending again the connection has already been terminated by the mixer and the fwrite error gets thrown because nothing was transmitted.
I hope this helps you.
Am Fr., 27. Apr. 2018 um 14:28 Uhr schrieb Alexander von Weiss < notifications@github.com>:
Are you able to share more information? I'd appreciate it.
We hit this issue on CI, but it's not reproducable locally. So I guess something on the server is interrupting the socket.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Textalk/websocket-php/issues/54#issuecomment-384955453, or mute the thread https://github.com/notifications/unsubscribe-auth/AVAKE8cu82E7b5GW5R6-8RdkBl5EEMgGks5tsw7ugaJpZM4TLc5Q .
-- Dominik Nußbaumer
We also saw this, used through https://gitlab.com/DMore/chrome-mink-driver.
In our case, the problem was simply that the chrome process had been terminated.
getting this error message when continually sending one command every 2 seconds: fwrite(): send of 15 bytes failed with errno=32 Broken pipe in /var/www/html/Mediatrix/php/vendor/textalk/websocket/lib/Base.php on line 179 PHP Fatal error: Uncaught WebSocket\ConnectionException: Could only write 0 out of 15 bytes. in /var/www/html/Mediatrix/php/vendor/textalk/websocket/lib/Base.php:182