首页 > 作文

fwrite(): send of 8192 bytes failed with errno=104 Connection reset by peer

更新时间:2023-04-07 19:34:02 阅读: 评论:0

问题:fwrite(): nd of 8192 bytes failed with errno=104 connection ret by peer

问题描述

通过mysql + sphinx做的一个检索功能,之前一直没什么问题,最近检索时有部分检索失败,查看中秋节日记450字日志后报错为 fwrite(): nd of 8192 b黄恺嘉ytes failed with errno=104 connection ret by peer。

问题分析

查看代码部分,fwrite() 打开的资源为fsockopen(),通过fsockopen连接sphinx,将数据写入到sphinx服务端。

最终发现问题出在sphinx服务端,由于检索的数据太大,在请求sphinx服务端时,发送的包数据超过了sphinx可接受的最大值,导致以上问题。

河东先生集

解决方小学课本袁隆平法

修改sphinx.conf中max_packet_size(最大允许的网络包大小)的设置值以解决问题。

封面设计模板

本文发布于:2023-04-07 19:34:01,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/zuowen/a6e19b5b8c96a73952fbcb6d4801501b.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

本文word下载地址:fwrite(): send of 8192 bytes failed with errno=104 Connection reset by peer.doc

本文 PDF 下载地址:fwrite(): send of 8192 bytes failed with errno=104 Connection reset by peer.pdf

标签:服务端   数据   河东   最大值
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图