我有一个设置,Nginx作为前端服务器,Tomcat实例作为反向代理设置中的上游服务器。
我不断收到各种请求的错误: 2017/07/20 11:43:11 [错误] 16892#16892:* 3154964 readv()失败(104:通过对等方重置连接)在读取上游时,客户端:,服务器:myserver,请求:" GET / / HTTP / 1.1",上游:" http:///",主持人:" myserver",推荐人:" https://myserver/&#34 ;
这个错误是什么意思,我该如何解决?
以下是Nginx conf指令的相关部分:
// if you need one more loop even if he get result you can use same way
let dict = ["c": 123, "d": 045, "a": 456]
for (index, entry) in dict.enumerated() {
if index == dict.count-1 { // Last loop
if !haveResult {
// make external call
}
}
}