In the swoole onClose event, call getClientInfo to report an ERROR 707 error

Thank you

first of all, thanks to the swoole team for their dedication and open source spirit

question

The

code is located to one line. Because the code is related to the business, it cannot be released completely. Please forgive me

$server->getClientInfo($this->fd)
This function is called in the onClose event in the

environment, and websocket server is enabled. This alarm will be reported as soon as getClientInfo is called, but the value can be obtained normally. After repeated tests, this alarm will occur regardless of whether the client is disconnected or the server is actively cut off.
specific alarms are as follows:

WARNING    swSignalfd_onSignal (ERROR 707): Unable to find callback function for signal Broken pipe: 13.

other

I originally wanted the swoole official community to release it, but as a result, I couldn"t help it. I clicked on publish, saying that I didn"t verify my phone or email, but a few seconds later I submitted it for verification. Finally, I clicked to the personal center to publish, saying that the section was closed and the question was fired directly at the question point. As a result, there was no response at all. The official community is too difficult to use. I hope to improve the community user experience, although it is at the bottom. However, the user experience is poor and there are a lot of difficulties in publishing problems, which I think is very detrimental to the development of the community

.
Jul.17,2022

means that a signal 13 has been sent to the process, and you have not registered the corresponding callback function. You can ignore the fact that


these two are not related. Signal 13 indicates that data has been sent to the closed socket in your code logic.


@ Han Tianfeng

Thank you for your reply, thank you very much! The problem of
gives me a headache, too, but I do debug this situation at the PHP level and send data to socket . I send it asynchronously in task , but before sending it in task , I use isEstablished to determine whether it is valid websocket client . Push

clipboard.png

I'll take another look. Thank you very much!


may be a timing problem during BIND, so messages sent before binding will be ignored and reported:
WARNING swSignal_callback (ERROR 707): Unable to find callback function for signal Broken pipe: 13.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3515c-4ebcd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3515c-4ebcd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?