mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-24 02:34:59 +00:00
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
424af31b45
commit
3879597f4f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46016
|
@ -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 a new issue