mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
MINOR: muxes: Don't bother to LIST_DEL(&conn->list) before calling conn_free().
conn_free() already removes the connection from any idle list, so there's no need to do it in the mux code, just before calling conn_free().
This commit is contained in:
parent
ff5dd74e25
commit
9c9da5ee89
@ -443,8 +443,6 @@ static void h1_release(struct connection *conn)
|
|||||||
{
|
{
|
||||||
struct h1c *h1c = conn->ctx;
|
struct h1c *h1c = conn->ctx;
|
||||||
|
|
||||||
LIST_DEL(&conn->list);
|
|
||||||
|
|
||||||
if (h1c) {
|
if (h1c) {
|
||||||
if (!LIST_ISEMPTY(&h1c->buf_wait.list)) {
|
if (!LIST_ISEMPTY(&h1c->buf_wait.list)) {
|
||||||
HA_SPIN_LOCK(BUF_WQ_LOCK, &buffer_wq_lock);
|
HA_SPIN_LOCK(BUF_WQ_LOCK, &buffer_wq_lock);
|
||||||
|
@ -600,8 +600,6 @@ static void h2_release(struct connection *conn)
|
|||||||
{
|
{
|
||||||
struct h2c *h2c = conn->ctx;
|
struct h2c *h2c = conn->ctx;
|
||||||
|
|
||||||
LIST_DEL(&conn->list);
|
|
||||||
|
|
||||||
if (h2c) {
|
if (h2c) {
|
||||||
hpack_dht_free(h2c->ddht);
|
hpack_dht_free(h2c->ddht);
|
||||||
|
|
||||||
|
@ -28,7 +28,6 @@ static void mux_pt_destroy(struct mux_pt_ctx *ctx)
|
|||||||
{
|
{
|
||||||
struct connection *conn = ctx->conn;
|
struct connection *conn = ctx->conn;
|
||||||
|
|
||||||
LIST_DEL(&conn->list);
|
|
||||||
conn_stop_tracking(conn);
|
conn_stop_tracking(conn);
|
||||||
conn_full_close(conn);
|
conn_full_close(conn);
|
||||||
tasklet_free(ctx->wait_event.task);
|
tasklet_free(ctx->wait_event.task);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user