Nginx An existing connection was forcibly closed by the remote host

【Help】 2017-10-24 12:16:18
在用nginx并发100次请求nginx里面的TCP时候提示An existing connection was forcibly closed by the remote host

error.log文件如下
2017/10/24 10:18:11 [error] 8492#16524: *581304 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while proxying connection, client: 101.457.149.558, server: 0.0.0.0:3540, upstream: "114.55.149.170:5672", bytes from/to client:0/0, bytes from/to upstream:0/0


nginx Tcp配置如下

stream {
upstream rabbitmq{
server 114.55.149.170:5672;
server 114.55.149.171:5672;
}
server {
listen 3540;
proxy_connect_timeout 600s;
#proxy_timeout 3s;
proxy_pass rabbitmq;
}
}
想到可能是并发下nginx有限制,但是stream里面好像没办法添加keepalive_requests来设置并发数,请问如何解决?
...全文
4577 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_41943810 2018-04-02
  • 打赏
  • 举报
回复
http://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_requests nginx默认长连接只处理100个请求的,
【Help】 2017-10-25
  • 打赏
  • 举报
回复
有人知道吗?
【Help】 2017-10-24
  • 打赏
  • 举报
回复
引用 3 楼 peng2739956 的回复:
LOOK THIS
我的是Tcp啊stream 模块
peng2739956 2017-10-24
  • 打赏
  • 举报
回复
peng2739956 2017-10-24
  • 打赏
  • 举报
回复
连接被终止了。 这才100并发, 配置文件配置的不对
【Help】 2017-10-24
  • 打赏
  • 举报
回复
有人知道吗?

62,244

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧