From: Victor Julien Date: Wed, 11 Dec 2019 19:57:57 +0000 (+0100) Subject: htp: close request only from request side X-Git-Tag: suricata-5.0.1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=040aff5197ba19caef1113c1c5c323eef72a9f69;p=thirdparty%2Fsuricata.git htp: close request only from request side This allows the response side to keep going for just a bit longer. --- diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index e8b05e1939..67da98189f 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -877,7 +877,7 @@ static int HTPHandleRequestData(Flow *f, void *htp_state, if (AppLayerParserStateIssetFlag(pstate, APP_LAYER_PARSER_EOF) && !(hstate->flags & HTP_FLAG_STATE_CLOSED_TS)) { - htp_connp_close(hstate->connp, &ts); + htp_connp_req_close(hstate->connp, &ts); hstate->flags |= HTP_FLAG_STATE_CLOSED_TS; SCLogDebug("stream eof encountered, closing htp handle for ts"); }