Results 1 to 2 of 2
Hi all,
I have been using a server and multiple clients which use tcp socket to communicate.As the clients are multiple I am creating a new thread for each client ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-18-2008 #1Just Joined!
- Join Date
- Feb 2008
- Posts
- 1
Data loss in tcp socket communication
Hi all,
I have been using a server and multiple clients which use tcp socket to communicate.As the clients are multiple I am creating a new thread for each client to receive the data at the server .But I see the data which is successfully sent at the client is not received at the server.I am using the socket send() and recv() system calls .I have tried the TCP_DELAY to disable nagle algorithm and increased the buffer size,but it showed up nothing.I need the data completely at the server to implement some algorithms .Your help can be great.
Thanks and regards,
Nanlu.
- 02-22-2008 #2Just Joined!
- Join Date
- Feb 2008
- Posts
- 7
try running your application (both server and client) using "strace -f -e trace=network <app_name>" and see what you are seeing.. you may also want to get the ethernet trace (using ethereal or wireshark) to see what is on the wire.. hope it help


Reply With Quote
