]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: stream: don't call stream_store_counters() in kill_mini_session() nor session...
authorWilly Tarreau <w@1wt.eu>
Sat, 4 Apr 2015 14:44:19 +0000 (16:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Apr 2015 09:37:31 +0000 (11:37 +0200)
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

index b3eba12155525d1305e7720327e119e5fb056661..47310f5d70d95d0701e4f6afa6368b2ab2af16ff 100644 (file)
@@ -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--;