Skip to content

Commit

Permalink
connection close happens on path 0
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuho committed Dec 23, 2024
1 parent a0849c6 commit c9cc65e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/quicly.c
Original file line number Diff line number Diff line change
Expand Up @@ -5506,6 +5506,8 @@ int quicly_set_cc(quicly_conn_t *conn, quicly_cc_type_t *cc)

static int do_send_closed(quicly_conn_t *conn, quicly_send_context_t *s)
{
assert(s->path_index == 0);

quicly_sentmap_iter_t iter;
int ret;

Expand Down Expand Up @@ -5600,6 +5602,7 @@ int quicly_send(quicly_conn_t *conn, quicly_address_t *dest, quicly_address_t *s
if ((ret = delete_path(conn, s.path_index)) != 0) {
initiate_close(conn, ret, QUICLY_FRAME_TYPE_PADDING, NULL);
assert(conn->super.state >= QUICLY_STATE_CLOSING);
s.path_index = 0;
ret = do_send_closed(conn, &s);
goto Exit;
}
Expand Down

0 comments on commit c9cc65e

Please sign in to comment.