An existing connection was forcibly closed by the remote host

其他环境
¥50.00已关闭

微信小程序里面使用websocket链接nginx服务器,nginx再将请求方向代理到IIS上面的asp.net 网站。websocket链接一直不稳定,经常断开,查看nginx的error.log,发现有如下报错:


21/02/02 10:53:01 [error] 8892#5732: *115154 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while proxying upgraded connection, client: 115.60.60.173, server: xjl.*.com, request: "GET /wss?userid=3&gameid=316 HTTP/1.1", upstream: "http://127.0.0.1:8010/wss?userid=3&gameid=316", host: "xjl.ranweitech.com", referrer: "https://servicewechat.com/wxc6228a7ab5ca72d9/2/page-frame.html"
2021/02/02 10:53:05 [error] 8892#5732: *115202 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: 115.60.60.173, server: xjl.*.com, request: "GET /wss?userid=1&gameid=316 HTTP/1.1", upstream: "http://127.0.0.1:8010/wss?userid=1&gameid=316", host: "xjl.*.com", referrer: "https://servicewechat.com/wxc6228a7ab5ca72d9/2/page-frame.html"


不知道如何修改配置才能解决websocket链接不稳定的问题。

页面统计
144 访问
0 帮助
0.00 打赏

hierror 2019 © hierror.com 京ICP备13026190号-1

通知消息
  • 暂无任何消息