Skip to content

Commit

Permalink
Release 3.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
gwanglst committed Aug 19, 2022
1 parent fa39a18 commit 0aa00f2
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/duck_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down
1 change: 1 addition & 0 deletions bin/duck_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down
2 changes: 2 additions & 0 deletions bin/echo_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 2 additions & 0 deletions bin/echo_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 2 additions & 0 deletions bin/http_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}


Expand Down
1 change: 1 addition & 0 deletions bin/http_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 2 additions & 0 deletions bin/md5_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 2 additions & 0 deletions bin/md5_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
1 change: 1 addition & 0 deletions bin/perf_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0aa00f2

Please sign in to comment.