serversocket hangs; recovers when client socket is closed

From: Mani Soundararajan (Soundararajan_at_discussions.microsoft.com)
Date: 06/23/04


Date: Wed, 23 Jun 2004 10:02:01 -0700

We have a server app written in java. Our client app uses a socket derived from CAsyncSocket. Sometimes, when the server is trying to send large data to the client, it just hangs. We waited for a long time. When we close the client app, the server socket immediately starts dumping the data it was supposed to send in the first place, meaning it recovers from the hang. The reason why i am posting this here is because, the same condition works fine if i have a java based thin test client.

Can anyone throw some light on this problem

Thanks !