FreeBSD Bugzilla – Attachment 13725 Details for
Bug 25986
Socket would hang at LAST_ACK forever.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 759 bytes, created by
Thinker
on 2001-03-22 08:50:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Thinker
Created:
2001-03-22 08:50:00 UTC
Size:
759 bytes
patch
obsolete
>--- sys/netinet/tcp_usrreq.c.orig Thu Mar 22 14:59:45 2001 >+++ sys/netinet/tcp_usrreq.c Thu Mar 22 15:04:49 2001 >@@ -1139,13 +1139,15 @@ > tp->t_state = TCPS_LAST_ACK; > break; > } >- if (tp && tp->t_state >= TCPS_FIN_WAIT_2) { >+ if (tp && tp->t_state >= TCPS_FIN_WAIT_2) > soisdisconnected(tp->t_inpcb->inp_socket); >- /* To prevent the connection hanging in FIN_WAIT_2 forever. */ >- if (tp->t_state == TCPS_FIN_WAIT_2) >- callout_reset(tp->tt_2msl, tcp_maxidle, >- tcp_timer_2msl, tp); >- } >+ /* >+ * To prevent the connection hanging in FIN_WAIT_2 & >+ * TCPS_LAST_ACK forever. >+ */ >+ if (tp->t_state == TCPS_FIN_WAIT_2 || tp->t_state == TCPS_LAST_ACK) >+ callout_reset(tp->tt_2msl, tcp_maxidle, >+ tcp_timer_2msl, tp); > return (tp); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25986
: 13725