mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-25 07:41:36 +02:00
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().
This commit is contained in:
parent
e73ef85a63
commit
1df0cc6466
@ -238,7 +238,6 @@ int stream_accept(struct listener *l, int cfd, struct sockaddr_storage *addr)
|
|||||||
task_free(t);
|
task_free(t);
|
||||||
out_free_strm:
|
out_free_strm:
|
||||||
p->feconn--;
|
p->feconn--;
|
||||||
stream_store_counters(s);
|
|
||||||
pool_free2(pool2_stream, s);
|
pool_free2(pool2_stream, s);
|
||||||
out_free_sess:
|
out_free_sess:
|
||||||
session_free(sess);
|
session_free(sess);
|
||||||
@ -338,7 +337,6 @@ static void kill_mini_session(struct stream *s)
|
|||||||
conn_free(conn);
|
conn_free(conn);
|
||||||
|
|
||||||
sess->fe->feconn--;
|
sess->fe->feconn--;
|
||||||
stream_store_counters(s);
|
|
||||||
|
|
||||||
if (!(sess->listener->options & LI_O_UNLIMITED))
|
if (!(sess->listener->options & LI_O_UNLIMITED))
|
||||||
actconn--;
|
actconn--;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user