Browse Source

Work around another confused-by-RST bug

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
5edb85c8b4
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      src/net/tcp.c

+ 8
- 0
src/net/tcp.c View File

516
 		/* FIN consumes one byte on the snd stream */
516
 		/* FIN consumes one byte on the snd stream */
517
 //		conn->snd_una++;
517
 //		conn->snd_una++;
518
 		goto send_tcp_nomsg;
518
 		goto send_tcp_nomsg;
519
+	case TCP_TIME_WAIT:
520
+#warning "Fix me"
521
+		/* In TIME_WAIT, we should just be waiting for the
522
+		 * timer to expire, which will trigger the actual
523
+		 * closure.  However, because we get confused by RST
524
+		 * packets, we end up here.  This works around the
525
+		 * problem for now.
526
+		 */
519
 	case TCP_SYN_SENT:
527
 	case TCP_SYN_SENT:
520
 	case TCP_LISTEN:
528
 	case TCP_LISTEN:
521
 		/**
529
 		/**

Loading…
Cancel
Save