在我的一些服务器上,执行 sphinx php 查询会返回该错误。搜索谷歌我找不到任何东西,除了这是错误出现的部分原因:
// send my version
// this is a subtle part. we must do it before (!) reading back from searchd.
// because otherwise under some conditions (reported on FreeBSD for instance)
// TCP stack could throttle write-write-read pattern because of Nagle.
if (!$this->Send($fp, pack('N', 1), 4))
{
fclose($fp);
$this->error = 'failed to send client protocol version';
return false;
}
我发现的关闭是这个http://www.sphinxsearch.com/forum/view.html?id=4919
但我不知道 sphinxapi.php 在哪里(我使用手动编译安装)并且不确定这是否是个好主意。
有人有什么想法吗?