Find the answer to your Linux question:
Results 1 to 2 of 2
Hi , I am writing some application like file download through HTTP protocol. The application downloading file very fine as along as there was no disruption network cable. But when ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Location
    India
    Posts
    10

    TCP application resume after network cable disconnect.

    Hi ,

    I am writing some application like file download through HTTP
    protocol.

    The application downloading file very fine as along as there was no
    disruption network cable.

    But when cable disrupting events like unplug and plug after some time,
    i could not receive data.
    i am using timed out mechanism to avoid blocking in recv() or send().
    i was receiving errno as EWOULDBLOCK but i ignored it and keep on
    receiving to proceed download further.

    i have few more doubts :
    i) i could observe the network time out error only once. but each recv
    () expected to be returned time out error. is not it?
    ii) After plugging the network cable there was no indication for data
    receive.

    Please help me how to resume the connection. after cable broken or
    time out ?

    Thanks in advance,
    Ganesh

  2. #2
    Just Joined!
    Join Date
    Aug 2009
    Location
    Germany
    Posts
    12
    I don't know if it's possible from the application program. I've been using mobile IP to handle this kind of situation.

    The issue is I guess the IP address may have disappeared or changed when the link is down, and TCP can no longer send data through the socket. You may want to check this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...