Connection Limit (SignalR + IIS at Windows) / (SignalR + IIS Express at Visual Studio)

Happy Development 20 Reputation points
2023-03-16T19:52:05.48+00:00

I have configured my application so that the client (Blazor Server App) always launches from Visual Studio and I have been testing the server (ASP.NET Core API) in 3 different environments:

1) Visual Studio & 2) IIS Express at Visual Studio: I test X connections and get X responses.
iisexpress

3) IIS at Windows: I test X connections, but only get 3 responses.
iis

On some sites I have read about some kind of limitation regarding IIS and SignalR in terms of 3 connections, but I cannot understand why it works as expected with IIS Express and from Visual Studio, but it doesn't work just in the IIS non-Express edition at Windows. I have been searching for days about this, I have found people who experience this error, I can assume it, but the big question is:

Why it works with Express but it doesn't with the non-Express?

From my point of view, if it works in the Express edition, it should work in the non-Express edition as well, so it could be possible to configure it somehow (supposedly) to emulate the environment that Visual Studio offers in IIS Express, in the non-Express edition at Windows?

I hope I have explained myself adequately. Any help would be greatly appreciated. Thank you!

Windows development | Internet Information Services
0 comments No comments
{count} votes

Accepted answer
  1. TengFeiXie-MSFT 346 Reputation points
    2023-03-17T05:12:36.9433333+00:00

    Hi @Happy Development

    Alright, there is no code and environment configuration information here. We don't know the actual situation.

    From your description, I understand that you can only have 3 connections in IIS on Windows. and Why it works with Express but it doesn't with the non-Express. Assuming there is nothing wrong with debugging. IIS has very low connection limits on non-server operating systems. This is a limit set by the Windows licensing team. Windows Server OS doesn't have these request restrictions. But IIS express does not have requests restrictions. You can refer to IIS Request Restrictions on Windows Client OS according to your device. Alright, about IIS concurrent connections you can refer to this: https://topic.alibabacloud.com/a/number-of-font-colorrediisfont-connections-font-colorrediisfont-concurrent-connections-font-colorrediisfont-maximum-concurrent-worker-threads-application-pool-queue-length-application-pool_8_8_30350250.html.

    I found you posted the same on Stack Overflow, I'll follow you on the Q&A forum.

    Best Regard,

    TengFei Xie


    If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.