我一直在为站点使用 Sphinx 技术并在 php 和 Node.js 中实现。使用 php 和 Sphinx,到目前为止我没有遇到任何问题。但是使用 Node.js 和 Sphinx,我很快就遇到了以下问题,
1. Error: Error: Connection is opening in OnConnect
at Socket.<anonymous> (/usr/local/lib/node_modules/limestone/limestone.js:217:26)
at Socket.emit (events.js:64:17)
at Object.afterConnect [as oncomplete] (net.js:614:10)
2. node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: write EPIPE
at errnoException (net.js:640:11)
at Object.afterWrite [as oncomplete] (net.js:478:18)
我一直在使用石灰石 node.js 模块作为 Node.js 和 Sphinx 服务器之间的中间件。我的假设是由于对 Sphinx 的并发连接请求而发生上述错误。如果是这样,那么如何避免并发 sphinx 请求。
请提出相同的建议。