Thread: Socket communication hanging

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    34

    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
    Last edited by zee; 08-04-2004 at 10:18 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. socket programming question, closing sockets...
    By ursula in forum Networking/Device Communication
    Replies: 2
    Last Post: 05-31-2009, 05:17 PM
  2. when to close a socket
    By Wisefool in forum Networking/Device Communication
    Replies: 5
    Last Post: 11-02-2003, 10:33 AM
  3. problem closing socket
    By Wisefool in forum Networking/Device Communication
    Replies: 2
    Last Post: 10-29-2003, 12:19 PM
  4. problem closing a socket
    By Wisefool in forum C Programming
    Replies: 1
    Last Post: 10-28-2003, 01:38 PM
  5. socket newbie, losing a few chars from server to client
    By registering in forum Linux Programming
    Replies: 2
    Last Post: 06-07-2003, 11:48 AM