Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only 7-9 Clients allowed to connect to Hub Hosted on local IIS in Client OS #3741

Closed
VrindiTeam opened this issue Jul 15, 2016 · 3 comments
Closed

Comments

@VrindiTeam
Copy link

We have developed small code to host signalR hub on local IIS in Client OS(like Windows 7 and others mention below),
But somehow once 7 to 9 clients gets connected and after that if any new client tries to connect it, it hangs in connecting mode, it went into infinite loading mode.

So in other words It works fine for 7-9 clients connected to SignalR hub but after that it does not allow to connect more client. If any of previous active client gets disconnected, it allow next waiting client to be connected.

Same thing is working fine for more than 200 clients for Hub hosted on IIS in Server OS(Windows Server 2012).

We have tried with the older and latest signalR versions. With 2-3 different Sample Codes. To check if problem is because of our coding or configuration problem.
We have also tested same thing on code available in below link and found same issue.
http://www.asp.net/signalr/overview/getting-started/tutorial-getting-started-with-signalr#run

Environment info on which we have tested and experiencing problems
Operating System: Windows 7, Windows 8, Windows 8.1, Windows 10
IIS VERSIONS: IIS 7.0, IIS 8.0

Can someone provide info If we are missing any configurations that already exist to solve problem.

@IanYates
Copy link

IanYates commented Jul 15, 2016

So IIS on Windows 7 and below doesn't support web sockets. Long polling is being used. That keeps a regular HTTP connection open for a long time.

You're then running in to the IIS limits imposed on the Windows client operating system. See here for a summary
http://www.jpelectron.com/sample/WWW%20and%20HTML/IIS-%20OS%20Version%20Limits.htm

Pro/Enterprise editions of Windows get 10 concurrent connections maximum.
Home editions get 3.
This isn't the TCP/IP connection limit - it's a limit imposed by IIS on client editions of Windows.

Also see http://weblogs.asp.net/owscott/windows-8-iis-8-concurrent-requests-limit

You could try IIS Express rather than full IIS. I think it might not have the limit (as it's meant for dev work).

@moozzyk
Copy link
Contributor

moozzyk commented Sep 2, 2016

Closing as per @IanYates comment.

@moozzyk moozzyk closed this as completed Sep 2, 2016
@guylando
Copy link

@IanYates we get to the limit even when using only websockets. many of the websockets connect\reconnect requests hang. I opened a separate issue for this: #4095
The environment is described there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants