summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faulet <cfaulet@haproxy.com>2020-09-30 14:03:54 +0200
committerChristopher Faulet <cfaulet@haproxy.com>2020-11-20 13:01:26 +0100
commit9c3f708956454d260ecf39bc429061590496fbe6 (patch)
treec6d4fe98220ff48f2867456312ed1a99b1ca2f88
parenta23ba7b1cd50c34812e88d73b8a287f26fb04501 (diff)
downloadhaproxy-9c3f708956454d260ecf39bc429061590496fbe6.tar.gz
MINOR: stream: Don't retrieve anymore timing info from the mux csinfo
These info are only provided by the mux-h1. But, thanks to previous patches, we can get them from the session directly. There is no need to retrieve them from the mux anymore.
-rw-r--r--src/stream.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/stream.c b/src/stream.c
index cae202452..a6e08ab2d 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -321,7 +321,6 @@ struct stream *stream_new(struct session *sess, enum obj_type *origin)
struct task *t;
struct conn_stream *cs = objt_cs(origin);
struct appctx *appctx = objt_appctx(origin);
- const struct cs_info *csinfo;
DBG_TRACE_ENTER(STRM_EV_STRM_NEW);
if (unlikely((s = pool_alloc(pool_head_stream)) == NULL))
@@ -346,17 +345,9 @@ struct stream *stream_new(struct session *sess, enum obj_type *origin)
s->logs.srv_queue_pos = 0; /* we will get this number soon */
s->obj_type = OBJ_TYPE_STREAM;
- csinfo = si_get_cs_info(cs);
- if (csinfo) {
- s->logs.accept_date = csinfo->create_date;
- s->logs.tv_accept = csinfo->tv_create;
- s->logs.t_handshake = csinfo->t_handshake;
- }
- else {
- s->logs.accept_date = sess->accept_date;
- s->logs.tv_accept = sess->tv_accept;
- s->logs.t_handshake = sess->t_handshake;
- }
+ s->logs.accept_date = sess->accept_date;
+ s->logs.tv_accept = sess->tv_accept;
+ s->logs.t_handshake = sess->t_handshake;
s->logs.t_idle = sess->t_idle;
/* default logging function */