m) correct qpack decoder stream log (#405)

Co-authored-by: wangfuyu <ivanfywang@gmail.com>
This commit is contained in:
wangfuyu 2022-08-15 20:25:34 +08:00 committed by GitHub
parent 43b1739859
commit 5f073670ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -301,15 +301,15 @@ qeh_in_on_read (struct lsquic_stream *stream, lsquic_stream_ctx_t *ctx)
{
if (nread < 0)
{
LSQ_WARN("cannot read from encoder stream: %s", strerror(errno));
LSQ_WARN("cannot read from decoder stream: %s", strerror(errno));
qeh->qeh_conn->cn_if->ci_internal_error(qeh->qeh_conn,
"cannot read from encoder stream");
"cannot read from decoder stream");
}
else
{
LSQ_INFO("encoder stream closed by peer: abort connection");
LSQ_INFO("decoder stream closed by peer: abort connection");
qeh->qeh_conn->cn_if->ci_abort_error(qeh->qeh_conn, 1,
HEC_CLOSED_CRITICAL_STREAM, "encoder stream closed");
HEC_CLOSED_CRITICAL_STREAM, "decoder stream closed");
}
lsquic_stream_wantread(stream, 0);
}