mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-12 08:27:24 +00:00
MINOR: session: don't rely on s->logs.logwait in embryonic sessions
The embryonic session now only stores the task (to expire the session) and the stick counters.
This commit is contained in:
parent
7ea671b914
commit
8d2eca73eb
@ -301,7 +301,7 @@ static void kill_mini_session(struct stream *s)
|
||||
int level = LOG_INFO;
|
||||
struct session *sess = s->sess;
|
||||
struct connection *conn = __objt_conn(sess->origin);
|
||||
unsigned int log = s->logs.logwait;
|
||||
unsigned int log = sess->fe->to_log;
|
||||
const char *err_msg;
|
||||
|
||||
if (sess->fe->options2 & PR_O2_LOGERRORS)
|
||||
@ -359,7 +359,7 @@ static void kill_mini_session(struct stream *s)
|
||||
/* FIXME: for now we have a 1:1 relation between stream and session so
|
||||
* the stream must free the session.
|
||||
*/
|
||||
pool_free2(pool2_session, s->sess);
|
||||
pool_free2(pool2_session, sess);
|
||||
pool_free2(pool2_stream, s);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user