user2884737
user2884737

Reputation: 5

Sending/Receiving data fast over TCP causes block

I'm testing my servers performance by creating 4 clients. Then they send 1 packet per second to the server, the server then receives these packets and sends them to the other clients.

My server is setup on a Linux virtual box on the same machine. Data is successfully sent and received for about 20 seconds then everything pauses and no more data can be sent or received? is this because I am filling up some sort of TCP queue? if I am is there some software I can use to see how full the queue is?

When I then close these clients the server runs and accepts messages.

Upvotes: 0

Views: 326

Answers (1)

user207421
user207421

Reputation: 310859

Unless everybody is reading all the data being sent to them, this will eventually stall due to TCP buffering. Only reading or closing the socket clears the buffers.

Upvotes: 1

Related Questions