Hi,
I ve written a simple client server,where a server waits on select for handling multiple client.
For load purposes I have connected only a single client and sending 200o msgs continuously.
I have noticed that after some time server reads junk data from the socket.
Its is only when i apply usleep after write in client,server is able to read correct data.
I ve tried using option like TCP_NODELAY and fysnc on socket but it does not help.
I am attaching client and server code files.
I am stuck in this problem from last 2 days.
Please help
Regards,