Wait until both sides close the TCP connection before initiating cleanup

pull/233/head
Ludovico Cavedon 12 years ago
parent 40d067e9ec
commit ac8b087717

@ -2631,7 +2631,7 @@ static int StreamTcpReassembleAppLayer (ThreadVars *tv,
{
/* send an empty EOF msg if we have no segments but TCP state
* is beyond ESTABLISHED */
if (ssn->state > TCP_ESTABLISHED) {
if (ssn->state >= TCP_CLOSING) {
SCLogDebug("sending empty eof message");
/* send EOF to app layer */
STREAM_SET_FLAGS(ssn, stream, p, flags);

Loading…
Cancel
Save