MEDIUM: session: do not free a session until no stream references it
authorWilly Tarreau <w@1wt.eu>
Tue, 27 Jun 2017 13:25:14 +0000 (15:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 Aug 2017 11:26:35 +0000 (13:26 +0200)
commitf92a73d2fcdfe4afa974aed1c94a9ad75b694b41
treea74494cd927a5409d0cb28629d44ad519e4ae909
parent2bfd35885ee1fb73461477e3237b28f4d6c7f2f8
MEDIUM: session: do not free a session until no stream references it

We now refrain from clearing a session's variables, counters, and from
releasing it as long as at least one stream references it. For now it
never happens but with H2 this will be mandatory to avoid double frees.
src/session.c