Release 3.1.3

This commit is contained in:
George Wang 2022-08-19 11:21:44 -04:00
parent fa39a18664
commit 0aa00f2369
9 changed files with 15 additions and 0 deletions

View file

@ -62,6 +62,8 @@ duck_client_on_conn_closed (lsquic_conn_t *conn)
lsquic_conn_ctx_t *ctx = lsquic_conn_get_ctx(conn);
LSQ_NOTICE("Connection closed, stop client");
prog_stop((struct prog *) ctx);
lsquic_conn_set_ctx(conn, NULL);
}

View file

@ -40,6 +40,7 @@ static void
duck_server_on_conn_closed (lsquic_conn_t *conn)
{
LSQ_NOTICE("siduck connection closed");
lsquic_conn_set_ctx(conn, NULL);
}

View file

@ -65,6 +65,8 @@ echo_client_on_conn_closed (lsquic_conn_t *conn)
lsquic_conn_ctx_t *conn_h = lsquic_conn_get_ctx(conn);
LSQ_NOTICE("Connection closed");
prog_stop(conn_h->client_ctx->prog);
lsquic_conn_set_ctx(conn, NULL);
free(conn_h);
}

View file

@ -72,6 +72,8 @@ echo_server_on_conn_closed (lsquic_conn_t *conn)
else
LSQ_NOTICE("Connection closed");
TAILQ_REMOVE(&conn_h->server_ctx->conn_ctxs, conn_h, next_connh);
lsquic_conn_set_ctx(conn, NULL);
free(conn_h);
}

View file

@ -373,6 +373,7 @@ http_client_on_conn_closed (lsquic_conn_t *conn)
}
event_active(cacos->event, 0, 0);
lsquic_conn_set_ctx(conn, NULL);
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);
LSQ_INFO("connection is closed: stop engine");
prog_stop(client_ctx->prog);
lsquic_conn_set_ctx(conn, NULL);
}

View file

@ -375,6 +375,7 @@ http_server_on_conn_closed (lsquic_conn_t *conn)
}
}
/* No provision is made to stop HTTP server */
lsquic_conn_set_ctx(conn, NULL);
free(conn_h);
}

View file

@ -110,6 +110,8 @@ client_on_conn_closed (lsquic_conn_t *conn)
lsquic_conn_ctx_t *conn_h = lsquic_conn_get_ctx(conn);
LSQ_NOTICE("Connection closed");
prog_stop(conn_h->client_ctx->prog);
lsquic_conn_set_ctx(conn, NULL);
free(conn_h);
}

View file

@ -95,6 +95,8 @@ server_on_conn_closed (lsquic_conn_t *conn)
else
LSQ_NOTICE("Connection closed");
TAILQ_REMOVE(&conn_h->server_ctx->conn_ctxs, conn_h, next_connh);
lsquic_conn_set_ctx(conn, NULL);
free(conn_h);
}

View file

@ -105,6 +105,7 @@ perf_client_on_conn_closed (struct lsquic_conn *conn)
LSQ_NOTICE("Connection closed");
conn_ctx = lsquic_conn_get_ctx(conn);
lsquic_conn_set_ctx(conn, NULL);
free(conn_ctx);
--s_n_conns;
if (0 == s_n_conns)