mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-09 00:27:08 +02:00
MEDIUM: log: add a new LW_XPRT flag to pin the transport layer
This flag will have to be set on log tags which require transport layer information. They will prevent the conn_xprt_close() call from releasing the transport layer too early.
This commit is contained in:
parent
1e954913de
commit
93dbc2bc0e
@ -131,6 +131,7 @@ struct logformat_node {
|
|||||||
#define LW_RSPHDR 2048 /* response header(s) */
|
#define LW_RSPHDR 2048 /* response header(s) */
|
||||||
#define LW_BCKIP 4096 /* backend IP */
|
#define LW_BCKIP 4096 /* backend IP */
|
||||||
#define LW_FRTIP 8192 /* frontend IP */
|
#define LW_FRTIP 8192 /* frontend IP */
|
||||||
|
#define LW_XPRT 16384 /* transport layer information (eg: SSL) */
|
||||||
|
|
||||||
struct logsrv {
|
struct logsrv {
|
||||||
struct list list;
|
struct list list;
|
||||||
|
@ -488,6 +488,10 @@ int session_complete(struct session *s)
|
|||||||
goto out_free_rep;
|
goto out_free_rep;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* if logs require transport layer information, note it on the connection */
|
||||||
|
if (s->logs.logwait & LW_XPRT)
|
||||||
|
s->si[0].conn.flags |= CO_FL_XPRT_TRACKED;
|
||||||
|
|
||||||
/* we want the connection handler to notify the stream interface about updates. */
|
/* we want the connection handler to notify the stream interface about updates. */
|
||||||
s->si[0].conn.flags |= CO_FL_WAKE_DATA;
|
s->si[0].conn.flags |= CO_FL_WAKE_DATA;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user