How often should I re-transmit un-acknowleged messages?
Answer / chaitanya
The simplest thing to do is simply pick a fairly small delay such as one second and stick with it. The problem is that this can congest your network with useless traffic if there is a problem on the lan or on the other machine, and this added traffic may only serve to make the problem worse.
Is This Answer Correct ? | 0 Yes | 0 No |
What are the pros/cons of select(), non-blocking I/O and SIGIO?
Explain the TIME_WAIT state.
Why do I get connection refused when the server is not running?
What is af_inet in socket?
How many sockets can a cpu have?
How can I be sure that UDP messages are received in order?
What is the difference between read() and recv()?
What is the function of socket?
Are unix sockets faster than tcp?
What is a socket connection?
Is there any advantage to handling the signal, rather than just ignoring it and checking for the EPIPE error? Are there any useful parameters passed to the signal catching function?
How can I force a socket to send the data in its buffer?