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

fwrite(): send of 2 bytes failed with errno=32 Broken pipe #18

Closed
clarkk opened this issue Aug 30, 2018 · 2 comments
Closed

fwrite(): send of 2 bytes failed with errno=32 Broken pipe #18

clarkk opened this issue Aug 30, 2018 · 2 comments
Assignees
Labels

Comments

@clarkk
Copy link

clarkk commented Aug 30, 2018

Often I get this error

fwrite(): send of 2 bytes failed with errno=32 Broken pipe /var/www/.../php/class/third-party/php-wss/Components/Connection.php(32)
#0 [internal function]: {closure}(8, 'fwrite(): send ...', '/var/www/...', 32, Array)
#1 /var/www/.../php/class/third-party/php-wss/Components/Connection.php(32): fwrite(Resource id #27, '\x88\x00')
#2 /var/www/.../php/class/Websocket.php(102): WSSC\Components\Connection->close()
#3 /var/www/.../php/class/third-party/php-wss/WebSocketServer.php(195): ServerHandler->onClose(Object(WSSC\Components\Connection))
#4 /var/www/.../php/class/third-party/php-wss/WebSocketServer.php(145): WSSC\WebSocketServer->messagesWorker(Array)
#5 /var/www/.../php/class/third-party/php-wss/WebSocketServer.php(100): WSSC\WebSocketServer->looping(Resource id #25)
#6 /var/www/.../php/class/third-party/php-wss/WebSocketServer.php(75): WSSC\WebSocketServer->eventLoop(Resource id #25)
#7 /var/www/.../public/websocket/index.php(31): WSSC\WebSocketServer->run()
#8 {main}
@arthurkushman
Copy link
Owner

It looks like server is trying to write to a connection that has been closed on the client side.

@clarkk
Copy link
Author

clarkk commented Aug 30, 2018

#19

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

No branches or pull requests

2 participants