fread(): SSL: Connection reset by peer in
Hello. I get this error from the logo. Please tell me what to pay attention to.
PHP Warning: fread(): SSL: Connection reset by peer in /var/www/site/vendor/workerman/workerman/Connection/TcpConnection.php on line 582
Certificate files are readable
'ssl' => [
'local_cert' => '/etc/nginx/ssl/www.site.crt',
'local_pk' => '/etc/nginx/ssl/www.site.crt',
'verify_peer' => false,
]
It appears that the connection was forcibly terminated by the client, which is a predictable warning and usually does not require special handling In the workerman source code @ is used to suppress such warnings.
I see @ in the source code, but I still get a lot of errors in my error log
@den1a it's not "a lot of errors", it's called stack trace showed where this error occur, so error only one here: "Connection reset by peer", it's just warning, so you can simply supress it as @walkor mentioned because it will recover automatically in case of disconnection.