I'm working an an application that sends files back and forth between PCs on a network via TCP/IP.
I have a one TCP server control and one TCP client control. They are connectiong okay, authentication and everything are working great. And so is sending a file using the client to the server. And even sending small files from the server to the client. But when the file size exceeds a few hundred KB I get an error 10035 (WSAEWOULDBLOCK) and after that point I can't do anything to get data sent from the server to the client. Every call to recv with this socket returns this error, no matter how long I wait, until I close the connection and try again.
The funny thing is the code I'm using to send via the client to the server is nearly identical and works perfectly.
Any ideas? Why would I be getting this error? And is there a way to prevent it?