kernel - Fix improper persist state in tcp
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 9 Jul 2011 06:45:22 +0000 (23:45 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 9 Jul 2011 06:45:22 +0000 (23:45 -0700)
commit55696211e6c955ba51eeeb5d0253749a1bf10d8e
treea78c321c7887198f47405f145849ff7a49961933
parent7902ca8cbf1514d9a6ed041cc29ac12a2e01d855
kernel - Fix improper persist state in tcp

* When TCP is doing a simultanious connect and sitting in the
  TCPS_SYN_RECEIVED state a degenerate 0 window (due to +SYN -ACK packets)
  case occurs where the code improperly tries to switch over from the
  retry timer to the persist timer, which panics.

  The invalid persist state was caught by code placed earlier in the
  year.

* Adjust the code to document the case and stay with the retry timer.
sys/netinet/tcp_output.c