代理连接时Nginx error recv()失败(104:对等方重置连接)

代理连接时Nginx error recv()失败(104:对等方重置连接),nginx,Nginx,我正在使用Nginx进行HTTP和TCP负载平衡。HTTP工作正常,但我发现TCP负载平衡的错误率低于此值。我正在使用Nginx ngx_stream_core_模块 nginx版本:nginx/1.9.13 Nginx错误日志: 2016/07/12 07:46:16 [error] 16737#16737: *32006 recv() failed (104: Connection reset by peer) while proxying connection, client: 27.50

我正在使用Nginx进行HTTP和TCP负载平衡。HTTP工作正常,但我发现TCP负载平衡的错误率低于此值。我正在使用Nginx ngx_stream_core_模块

nginx版本:nginx/1.9.13

Nginx错误日志:

2016/07/12 07:46:16 [error] 16737#16737: *32006 recv() failed (104: Connection reset by peer) while proxying connection, client: 27.50.X.X, server: 0.0.0.0:3030, upstream: "10.7.0.12:3030", bytes from/to client:354/318, bytes from/to upstream:318/354
2016/07/12 07:48:53 [error] 16737#16737: *32048 recv() failed (104: Connection reset by peer) while proxying connection, client: 27.50.X.X, server: 0.0.0.0:3030, upstream: "10.7.0.12:3030", bytes from/to client:324/292, bytes from/to upstream:292/324
2016/07/12 07:51:40 [error] 16737#16737: *32109 recv() failed (104: Connection reset by peer) while proxying connection, client: 27.50.X.X, server: 0.0.0.0:3030, upstream: "10.7.0.12:3030", bytes from/to client:324/292, bytes from/to upstream:292/324
有人能帮我理解为什么我会犯这样的错误吗


是否有任何方法可以为到达Nginx的tcp请求启用访问日志?

您找到解决方案了吗?我们面临着类似的问题。。只有少数用户无法连接,其他用户则无法连接fine@user18853使用tcpdump和wireshark进行调试帮助我找到了根本原因。客户端应用程序正在发送RST,这就是它被断开连接的原因。在tcpdump和wireshark的帮助下,还发现了nginx中没有的问题,谢谢。然后,了解到客户端正在发送RST后,该问题是如何解决的。