Dale

Dale

  • NA
  • 1
  • 0

Socket stops receiving data after 30 seconds or so....

Mar 30 2008 10:12 PM
 

Hi,

Not sure if i'm in the right spot but I am currently running an application that sends data over tcp sockets at approx 200 messages a second. The socket is a listener and once connected will start sending.
The socket is set up to receive data asynchronously, and for each message sent an ack is received.

After almost exactly 30 seconds, the DataReceived Callback stops getting raised, the messages continue to send correctly and are still received on the client side.

Both apps are in .NET 2.0 and using the System.Net.Sockets library. After putting breakpoints everywhere, the socket remains open and connected, yet no data is received. I am 100% sure that data is actually being sent from the client.

The OS is WinXP SP2, running visual studio 2005 team edition.

For a little background on the application, all it is doing is listening on a port, there is a listener socket and a worker socket and on a client connection, the listener is passed to the worker and the messages begin sending. The other side processes and does some db inserts etc and replies with an ack.

The amount of data being sent for each message is about 100 - 200 bytes and the acks are 15 - 20 bytes.

Any information would be useful. 

Thanks