mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 07:11:32 +00:00
Work around another confused-by-RST bug
This commit is contained in:
parent
d88832ad7e
commit
5edb85c8b4
@ -516,6 +516,14 @@ int tcp_close ( struct tcp_connection *conn ) {
|
||||
/* FIN consumes one byte on the snd stream */
|
||||
// conn->snd_una++;
|
||||
goto send_tcp_nomsg;
|
||||
case TCP_TIME_WAIT:
|
||||
#warning "Fix me"
|
||||
/* In TIME_WAIT, we should just be waiting for the
|
||||
* timer to expire, which will trigger the actual
|
||||
* closure. However, because we get confused by RST
|
||||
* packets, we end up here. This works around the
|
||||
* problem for now.
|
||||
*/
|
||||
case TCP_SYN_SENT:
|
||||
case TCP_LISTEN:
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user