且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 PHP 中:OpenSSL 错误消息:错误:1409F07F:SSL 例程:SSL3_WRITE_PENDING:错误写入重试

更新时间:2021-12-04 00:51:30

我发现我可以通过将传递给 fwrite() 的字符串长度限制为 8192 来解决这个问题,这可以防止 fwrite() 警告.

I have found I can get around this problem by restricting the length of the string passed to fwrite() to 8192, which prevents fwrite() warning.

因此,对于您示例中的代码,我会尝试将 substr() 调用更改为:

So for the code in your example I would try changing the substr() call to:

$buffer = substr($buffer, $len, 8192);