mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-07 22:12:08 +00:00
BUG/MINOR: rhttp: fix task_wakeup state
TASK_WOKEN_ANY was incorrectly used as argument to task_wakeup() for rhttp preconnect task. This value is used as a flag. Replace it by proper individual values. This is labelled as a bug but it has no known impact. This should be backported up to 2.9.
This commit is contained in:
parent
2770ef352e
commit
808daa7cfb
@ -134,7 +134,7 @@ fail:
|
||||
/* If connection is interrupted without CO_FL_ERROR, receiver task won't free it. */
|
||||
BUG_ON(!(conn->flags & CO_FL_ERROR));
|
||||
|
||||
task_wakeup(l->rx.rhttp.task, TASK_WOKEN_ANY);
|
||||
task_wakeup(l->rx.rhttp.task, TASK_WOKEN_RES);
|
||||
}
|
||||
return -1;
|
||||
} else
|
||||
@ -2796,7 +2796,7 @@ int conn_reverse(struct connection *conn)
|
||||
|
||||
conn->target = &l->obj_type;
|
||||
conn->flags |= CO_FL_ACT_REVERSING;
|
||||
task_wakeup(l->rx.rhttp.task, TASK_WOKEN_ANY);
|
||||
task_wakeup(l->rx.rhttp.task, TASK_WOKEN_RES);
|
||||
}
|
||||
|
||||
/* Invert source and destination addresses if already set. */
|
||||
|
@ -387,7 +387,7 @@ void rhttp_enable_listener(struct listener *l)
|
||||
l->rx.rhttp.state = LI_PRECONN_ST_INIT;
|
||||
}
|
||||
|
||||
task_wakeup(l->rx.rhttp.task, TASK_WOKEN_ANY);
|
||||
task_wakeup(l->rx.rhttp.task, TASK_WOKEN_INIT);
|
||||
}
|
||||
|
||||
void rhttp_disable_listener(struct listener *l)
|
||||
|
Loading…
Reference in New Issue
Block a user