My 'Send' command is not blocking when it should, and instead crashes the socket connection

Chris Grossman 5 Reputation points
2025-05-12T17:45:25.77+00:00

My Client successfully connects to the Server and starts sending data using the 'Send' Winsock API. It continues sending data at a rate faster than the Server can process it. On Windows 10, the socket behaves as advertised, and the 'Send' blocks until the Server catches up. On Windows 11, the 'Send' does NOT block and crashes the socket (10053 error code) when (apparently) the TCP/IP buffer overflows. It sends anywhere from 700MB to nearly 2GB before this happens. I searched high and low for a setting that's different between the two, or something I'm not doing properly, but have found nothing. Any ideas anyone?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,772 questions
0 comments No comments
{count} votes

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.