Socket communication hanging
Socket problem :(
Whenever i make a socket and use it for reading and writing, i have this problem,
i open one socket on the server and it reads from it ( and of course the client writes to it) now the problem is if i add a write to the server and a read to the client
the client hangs on the read while the server hangs on the first read which worked before, they both stop in the reads, i do not understand why the server dosnt move to the next write and stays at the read even after recieving data and hangs more and in that time the client reaches its read so they are both in a state of read and were stuck.
EDIT: i did a netstat on the port i am using and i can see there is a socket left open in the TIME_WAIT status
thank you in advance
:(