From 1df0cc6466fc75dec9fea63115ff4ac5c716023b Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sat, 4 Apr 2015 16:44:19 +0200 Subject: [PATCH] MEDIUM: stream: don't call stream_store_counters() in kill_mini_session() nor session_accept() This one is not needed anymore since we cannot track the stream counters prior to reaching these locations. Only session counters may be tracked and they're properly committed during session_free(). --- src/stream.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/stream.c b/src/stream.c index b3eba1215..47310f5d7 100644 --- a/src/stream.c +++ b/src/stream.c @@ -238,7 +238,6 @@ int stream_accept(struct listener *l, int cfd, struct sockaddr_storage *addr) task_free(t); out_free_strm: p->feconn--; - stream_store_counters(s); pool_free2(pool2_stream, s); out_free_sess: session_free(sess); @@ -338,7 +337,6 @@ static void kill_mini_session(struct stream *s) conn_free(conn); sess->fe->feconn--; - stream_store_counters(s); if (!(sess->listener->options & LI_O_UNLIMITED)) actconn--;