Assert that if a connection is closed before being used, it is so for a reason

... but we can not make any assumption as to why

Fixes #3664
parent eb24a4a6
...@@ -233,15 +233,8 @@ vbe_dir_finish(VRT_CTX, VCL_BACKEND d) ...@@ -233,15 +233,8 @@ vbe_dir_finish(VRT_CTX, VCL_BACKEND d)
CHECK_OBJ_NOTNULL(bo->htc, HTTP_CONN_MAGIC); CHECK_OBJ_NOTNULL(bo->htc, HTTP_CONN_MAGIC);
pfd = bo->htc->priv; pfd = bo->htc->priv;
bo->htc->priv = NULL; bo->htc->priv = NULL;
if (PFD_State(pfd) != PFD_STATE_USED) { if (PFD_State(pfd) != PFD_STATE_USED)
AN(bo->htc->doclose); AN(bo->htc->doclose);
if (bo->htc->doclose != SC_TX_PIPE) {
#define SESS_CLOSE(U, l, err, desc) \
if (bo->htc->doclose == SC_ ## U) \
AN(err);
#include "tbl/sess_close.h"
}
}
if (bo->htc->doclose != SC_NULL || bp->proxy_header != 0) { if (bo->htc->doclose != SC_NULL || bp->proxy_header != 0) {
VSLb(bo->vsl, SLT_BackendClose, "%d %s close", *PFD_Fd(pfd), VSLb(bo->vsl, SLT_BackendClose, "%d %s close", *PFD_Fd(pfd),
VRT_BACKEND_string(d)); VRT_BACKEND_string(d));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment