]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: proto_htx: Adapt htx_process_tarpit to handle HTX messages
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 24 Oct 2018 09:15:09 +0000 (11:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Nov 2018 21:09:00 +0000 (22:09 +0100)
src/proto_htx.c

index 3594534326147bf5c1c405bb48c870083740d984..8bf60fc9d1de6b7a4d720dc80bcf5d415daf3c73 100644 (file)
@@ -984,11 +984,6 @@ int htx_process_tarpit(struct stream *s, struct channel *req, int an_bit)
 {
        struct http_txn *txn = s->txn;
 
-       // TODO: Disabled for now
-       req->analyse_exp = TICK_ETERNITY;
-       req->analysers &= ~an_bit;
-       return 1;
-
        /* This connection is being tarpitted. The CLIENT side has
         * already set the connect expiration date to the right
         * timeout. We just have to check that the client is still
@@ -1008,7 +1003,7 @@ int htx_process_tarpit(struct stream *s, struct channel *req, int an_bit)
        s->logs.t_queue = tv_ms_elapsed(&s->logs.tv_accept, &now);
 
        if (!(req->flags & CF_READ_ERROR))
-               http_reply_and_close(s, txn->status, http_error_message(s));
+               htx_reply_and_close(s, txn->status, http_error_message(s));
 
        req->analysers &= AN_REQ_FLT_END;
        req->analyse_exp = TICK_ETERNITY;