mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-15 23:32:07 +02:00
MINOR: tevt/stream/stconn: Report termination events for stream and sc
In this patch, events for the stream location are reported. These events are first reported on the corresponding stream-connector. So front events on scf and back event on scb. Then all events are both merged in the stream. But only 4 events are saved on the stream. Several internal events are for now grouped with the type "tevt_type_intercepted". More events will be added to have a better resolution. But at least the place to report these events are identified. For now, when a event is reported on a SC, it is also reported on the stream and vice versa.
This commit is contained in:
@@ -418,6 +418,19 @@ static inline unsigned int stream_map_task_state(unsigned int state)
|
||||
0;
|
||||
}
|
||||
|
||||
static inline void stream_report_term_evt(struct stconn *sc, enum term_event_loc loc, enum term_event_type type)
|
||||
{
|
||||
struct stream *s = sc_strm(sc);
|
||||
|
||||
if (!s)
|
||||
return;
|
||||
|
||||
if (sc->flags & SC_FL_ISBACK)
|
||||
loc += 8;
|
||||
s->term_evts_log = tevt_report_event(s->term_evts_log, loc, type);
|
||||
sc->term_evts_log = tevt_report_event(sc->term_evts_log, loc, type);
|
||||
}
|
||||
|
||||
|
||||
int stream_set_timeout(struct stream *s, enum act_timeout_name name, int timeout);
|
||||
void stream_retnclose(struct stream *s, const struct buffer *msg);
|
||||
|
||||
Reference in New Issue
Block a user