C
C#2mo ago
CallNen1

SocketsHttpHandler Bandwidth Issue Under High Concurrency (WinHttpHandler Unaffected)

Hey, I encountered an issue where SocketsHttpHandler fails to fully utilize bandwidth under high-concurrency requests, even though the number of connections increases. No matter how I configure it, the bandwidth remains underutilized, whereas WinHttpHandler doesn't have this problem. dotNET Version: Microsoft.NETCore.App 8.0.13
No description
No description
No description
1 Reply
CallNen1
CallNen1OP2mo ago
I found the issue: the VS debugger collects request data from SocketsHttpHandler, which affects its behavior even when running the Release build. If I run the program without debugging, SocketsHttpHandler works as expected.

Did you find this page helpful?