From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b81d55dc0c2181c6,start X-Google-Attributes: gidfee84,public From: ccrlphr@xensei.com Subject: socket still listening after process crashes Date: 1996/06/25 Message-ID: <4qpeul$pn3@xensei3.xensei.com>#1/1 X-Deja-AN: 162125216 organization: none x-inews: perl5newspkg newsgroups: comp.unix.osf.osf1 we realized the following weird behavior on DEC UNIX 3.2C: 1. an application creates a socket, binds it and put it into LISTEN mode. 2. the application accepts various connection 3. the application crashes (for instance using kill -BUS ..). after the application dumped the core: - netstat shows the socket still in LISTEN mode - a connect request on this socket from a new client gets accepted by the system The sockets gets only deleted after ALL clients closed the connection. This need to be done by hand because the clients do not realize that the connection closed (if the system does not realize this you cannot expect it from the clients). I don't think that this is the way it should work, so my questions: - is there a patch available and/or is this problem solved in DEC UNIX 4.0? - is there a workaround? (SO_REUSEADDR does not help, SO_KEEPALIVE checks only every 2..3 hours which is not fast enough) -- Steffen Ullrich * ccrlphr@xensei.com * http://www.xensei.com/users/ccrlphr/