problem with socket read( ) on TCP server side

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I was trying out a simple client - server program using Linux sockets.
Server basically echoes back whatever it receives from the client.
Server is multi threaded to handle multiple client requests.
All clients and server are running on the same system - localloop

The problem i'm facing is that -
Whatever the 1st client writes to the socket is not being read on the
server side child process for that connection.
For all the subsequent client - server connections , server is able to
read and write back whatever is read.

And one more info:

I used wireshark to see what is happening - and connection is being
established properly (3 way exchange) for all the clients.
Also, the server is sending ACK for the 1st client's data, but this
data is not reaching the server process connected with that client.
For all subsequent client's the packet exchange is proper.

Anything wrong I may be doing here?

Thanks,
Chandan
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux