上游过早关闭的连接,同时从上游,客户端读取响应头

Har*_*nan 5 memcached freebsd fastcgi nginx spawn-fcgi

我从/var/log/messagesFreeBSD盒中收到此错误。我使用nginxspawn-fcgimemcacheapc启用的模块。

upstream prematurely closed connection while reading response header from upstream, 
client HTTP/1.1", upstream: "fastcgi://unix:/tmp/fcgi.sock:", host:
Run Code Online (Sandbox Code Playgroud)

Har*_*nan 0

和PHP的版本有关。我使用了最新版本的 nginx 和稍旧版本的 PHP。通过将 PHP 更新到最新版本,该问题已得到解决。