SignalR Core connections not being closed and bringing down IIS

≯℡__Kan透↙ 提交于 2021-02-11 17:51:11

问题


We have SignalR Core running in IIS and the connections are not being closed over time.

This results in a 503 error:

HTTP Error 503.2 - Service Unavailable
The serverRuntime@appConcurrentRequestLimit setting is being exceeded.

When recycling the apppool the Current Connections will drop to 0 and then back up to around 50 (as actual clients reconnect). Over the course of a day it can easily reach 2000. Not every connection is leaking - the number does decrease but trends upwards over time.

Latest .NET Core 3.1 is installed.


回答1:


We are using Argo Tunnel which creates a tunnel from our webserver to the Cloudflare network.

Turns out it was an out of date cloudflared executable.

The version we were running was from 5/2019 and updating to the new version from 12/2019 has fixed the problem. In fact when stopping the cloudflare service all the connections instantly dropped away.



来源:https://stackoverflow.com/questions/60083256/signalr-core-connections-not-being-closed-and-bringing-down-iis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!