#define HTX_FL_PARSING_ERROR 0x00000001 /* Set when a parsing error occurred */
#define HTX_FL_PROCESSING_ERROR 0x00000002 /* Set when a processing error occurred */
#define HTX_FL_UPGRADE 0x00000004 /* Set when an upgrade is in progress */
+#define HTX_FL_PROXY_RESP 0x00000008 /* Set when the response was generated by HAProxy */
/* HTX block's type (max 15). */
/* let's log the request time */
s->logs.tv_request = now;
+ htx->flags |= HTX_FL_PROXY_RESP;
data = htx->data - co_data(res);
c_adv(res, data);
res->total += data;
chn->buf.data = msg->data;
memcpy(chn->buf.area, msg->area, msg->data);
htx = htx_from_buf(&chn->buf);
+ htx->flags |= HTX_FL_PROXY_RESP;
c_adv(chn, htx->data);
chn->total += htx->data;
}
chn->buf.data = msg->data;
memcpy(chn->buf.area, msg->area, msg->data);
htx = htx_from_buf(&chn->buf);
+ htx->flags |= HTX_FL_PROXY_RESP;
c_adv(chn, htx->data);
chn->total += htx->data;
}
if (!htx_add_endof(htx, HTX_BLK_EOM))
goto fail;
+ htx->flags |= HTX_FL_PROXY_RESP;
data = htx->data - co_data(res);
c_adv(res, data);
res->total += data;