Skip to content

Commit

Permalink
QUIC APL: When creating a default XSO, no further streams can arrive …
Browse files Browse the repository at this point in the history
…after connection terminastion

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #24037)
  • Loading branch information
hlandau committed Apr 19, 2024
1 parent fc8732e commit 961d4f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ssl/quic/quic_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2050,9 +2050,12 @@ static int qc_wait_for_default_xso_for_read(QCTX *ctx, int peek)
if (peek)
return 0;

if (!qctx_blocking(ctx))
if (ossl_quic_channel_is_term_any(qc->ch)) {
return QUIC_RAISE_NON_NORMAL_ERROR(ctx, SSL_R_PROTOCOL_IS_SHUTDOWN, NULL);
} else if (!qctx_blocking(ctx)) {
/* Non-blocking mode, so just bail immediately. */
return QUIC_RAISE_NORMAL_ERROR(ctx, SSL_ERROR_WANT_READ);
}

/* Block until we have a stream. */
wargs.qc = qc;
Expand Down

0 comments on commit 961d4f2

Please sign in to comment.