Release 3.1.3
This commit is contained in:
parent
fa39a18664
commit
0aa00f2369
|
@ -62,6 +62,8 @@ duck_client_on_conn_closed (lsquic_conn_t *conn)
|
||||||
lsquic_conn_ctx_t *ctx = lsquic_conn_get_ctx(conn);
|
lsquic_conn_ctx_t *ctx = lsquic_conn_get_ctx(conn);
|
||||||
LSQ_NOTICE("Connection closed, stop client");
|
LSQ_NOTICE("Connection closed, stop client");
|
||||||
prog_stop((struct prog *) ctx);
|
prog_stop((struct prog *) ctx);
|
||||||
|
|
||||||
|
lsquic_conn_set_ctx(conn, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@ static void
|
||||||
duck_server_on_conn_closed (lsquic_conn_t *conn)
|
duck_server_on_conn_closed (lsquic_conn_t *conn)
|
||||||
{
|
{
|
||||||
LSQ_NOTICE("siduck connection closed");
|
LSQ_NOTICE("siduck connection closed");
|
||||||
|
lsquic_conn_set_ctx(conn, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,8 @@ echo_client_on_conn_closed (lsquic_conn_t *conn)
|
||||||
lsquic_conn_ctx_t *conn_h = lsquic_conn_get_ctx(conn);
|
lsquic_conn_ctx_t *conn_h = lsquic_conn_get_ctx(conn);
|
||||||
LSQ_NOTICE("Connection closed");
|
LSQ_NOTICE("Connection closed");
|
||||||
prog_stop(conn_h->client_ctx->prog);
|
prog_stop(conn_h->client_ctx->prog);
|
||||||
|
|
||||||
|
lsquic_conn_set_ctx(conn, NULL);
|
||||||
free(conn_h);
|
free(conn_h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,8 @@ echo_server_on_conn_closed (lsquic_conn_t *conn)
|
||||||
else
|
else
|
||||||
LSQ_NOTICE("Connection closed");
|
LSQ_NOTICE("Connection closed");
|
||||||
TAILQ_REMOVE(&conn_h->server_ctx->conn_ctxs, conn_h, next_connh);
|
TAILQ_REMOVE(&conn_h->server_ctx->conn_ctxs, conn_h, next_connh);
|
||||||
|
|
||||||
|
lsquic_conn_set_ctx(conn, NULL);
|
||||||
free(conn_h);
|
free(conn_h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -373,6 +373,7 @@ http_client_on_conn_closed (lsquic_conn_t *conn)
|
||||||
}
|
}
|
||||||
event_active(cacos->event, 0, 0);
|
event_active(cacos->event, 0, 0);
|
||||||
|
|
||||||
|
lsquic_conn_set_ctx(conn, NULL);
|
||||||
free(conn_h);
|
free(conn_h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1328,6 +1329,7 @@ qif_client_on_conn_closed (lsquic_conn_t *conn)
|
||||||
struct http_client_ctx *client_ctx = (void *) lsquic_conn_get_ctx(conn);
|
struct http_client_ctx *client_ctx = (void *) lsquic_conn_get_ctx(conn);
|
||||||
LSQ_INFO("connection is closed: stop engine");
|
LSQ_INFO("connection is closed: stop engine");
|
||||||
prog_stop(client_ctx->prog);
|
prog_stop(client_ctx->prog);
|
||||||
|
lsquic_conn_set_ctx(conn, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -375,6 +375,7 @@ http_server_on_conn_closed (lsquic_conn_t *conn)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* No provision is made to stop HTTP server */
|
/* No provision is made to stop HTTP server */
|
||||||
|
lsquic_conn_set_ctx(conn, NULL);
|
||||||
free(conn_h);
|
free(conn_h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -110,6 +110,8 @@ client_on_conn_closed (lsquic_conn_t *conn)
|
||||||
lsquic_conn_ctx_t *conn_h = lsquic_conn_get_ctx(conn);
|
lsquic_conn_ctx_t *conn_h = lsquic_conn_get_ctx(conn);
|
||||||
LSQ_NOTICE("Connection closed");
|
LSQ_NOTICE("Connection closed");
|
||||||
prog_stop(conn_h->client_ctx->prog);
|
prog_stop(conn_h->client_ctx->prog);
|
||||||
|
|
||||||
|
lsquic_conn_set_ctx(conn, NULL);
|
||||||
free(conn_h);
|
free(conn_h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -95,6 +95,8 @@ server_on_conn_closed (lsquic_conn_t *conn)
|
||||||
else
|
else
|
||||||
LSQ_NOTICE("Connection closed");
|
LSQ_NOTICE("Connection closed");
|
||||||
TAILQ_REMOVE(&conn_h->server_ctx->conn_ctxs, conn_h, next_connh);
|
TAILQ_REMOVE(&conn_h->server_ctx->conn_ctxs, conn_h, next_connh);
|
||||||
|
|
||||||
|
lsquic_conn_set_ctx(conn, NULL);
|
||||||
free(conn_h);
|
free(conn_h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -105,6 +105,7 @@ perf_client_on_conn_closed (struct lsquic_conn *conn)
|
||||||
|
|
||||||
LSQ_NOTICE("Connection closed");
|
LSQ_NOTICE("Connection closed");
|
||||||
conn_ctx = lsquic_conn_get_ctx(conn);
|
conn_ctx = lsquic_conn_get_ctx(conn);
|
||||||
|
lsquic_conn_set_ctx(conn, NULL);
|
||||||
free(conn_ctx);
|
free(conn_ctx);
|
||||||
--s_n_conns;
|
--s_n_conns;
|
||||||
if (0 == s_n_conns)
|
if (0 == s_n_conns)
|
||||||
|
|
Loading…
Reference in New Issue