so_linger is in seconds, not in 1/HZ
PR: 11252 Submitted by: Martin Kammerhofer <dada@sbox.tu-graz.ac.at>
This commit is contained in:
parent
4891334365
commit
b9837c617f
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* From: @(#)tcp_usrreq.c 8.2 (Berkeley) 1/3/94
|
||||
* $Id: tcp_usrreq.c,v 1.39 1998/12/07 21:58:42 archie Exp $
|
||||
* $Id: tcp_usrreq.c,v 1.40 1999/01/20 17:31:59 fenner Exp $
|
||||
*/
|
||||
|
||||
#include "opt_tcpdebug.h"
|
||||
@ -111,7 +111,7 @@ tcp_usr_attach(struct socket *so, int proto, struct proc *p)
|
||||
goto out;
|
||||
|
||||
if ((so->so_options & SO_LINGER) && so->so_linger == 0)
|
||||
so->so_linger = TCP_LINGERTIME * hz;
|
||||
so->so_linger = TCP_LINGERTIME;
|
||||
tp = sototcpcb(so);
|
||||
out:
|
||||
TCPDEBUG2(PRU_ATTACH);
|
||||
|
Loading…
Reference in New Issue
Block a user