diff --git a/src/h2load_quic.cc b/src/h2load_quic.cc index e6f019c4..445a005e 100644 --- a/src/h2load_quic.cc +++ b/src/h2load_quic.cc @@ -159,7 +159,8 @@ int stream_close(ngtcp2_conn *conn, int64_t stream_id, uint64_t app_error_code, int Client::quic_stream_close(int64_t stream_id, uint64_t app_error_code) { auto s = static_cast(session.get()); - if (s->close_stream(stream_id, app_error_code) != 0) { + if (s->close_stream(stream_id, app_error_code == 0 ? NGHTTP3_HTTP_NO_ERROR + : app_error_code) != 0) { return -1; } return 0;