Hi,
I wrote:
>we are writing tcp/ip applications using sockets. As usual we have a client
> and a server. We observed that if the machine on which the client is running
> crashes the socket on the server part remains connected as if nothing wrong
> happend. This is a problem. Of course there are solutions to this but
> we would like to know if this is normal behavior of sockets.
> Another problem is that if server goes down our clients try to reconnect it
> for sometimes and then is not possible to restart the server because
> the port is busy (connection refused). Do you have any idea how to resolve
> this??
Thanks to iglesias_at_draco.acs.uci.edu which suggested to use the setsockopt
system call with SO_KEEPALIVE and SO_REUSEADDR options.
David
Received on Sun Feb 19 1995 - 14:04:01 NZDT