When the data of size 5KB is being transferred btw client & server after some time a run time error is generated at the client side.

But when the data transfer size is reduced to 2KB no error is generated.

Why is this happening?
Waiting for suggestions.

Also i use Winsock2 for communication.
Server ---> MFC dialog based app.
Client ---> MFC SDI application with explorer type view.

Both client & server are non blocking thanks to WSAAsyncSelect().

Waiting for suggestions
Best Regards