IIS 7 and Above
IIS c++ websocket related module development
Re: IIS c++ websocket related module development
Jul 23, 2019 11:06 AM|rflsouza|LINK
I did not test your project, as I understand you looped to read, I tried to follow this logic, but it will be limited in the number of threads that IIS supports (Maximum Threads Count).
PoolThreadLimit = max (256).
I did a stress test program in win32, it connects and keeps sending messages to the server, the server responds with echo.
Using the while (true) in the test fails to exceed 250 websocket clients, as provided by the IIS limitation. I found nothing to increase this number.
So I changed not to use while (true) in reading, leaving everything asynchronous and IIS controlling client threads, managed to put 20,000 clients and in less than 1 hour to send and receive more than 5 million messages. Server CPU at 0% and memory less
Xeon L5520 (8 core - 16 logical) 2.27Ghz
12 GB memory
Windows 2016 - IIS 10
If you are interested, then I will write on my blog and put the images of the test. let me know!