From d2d2c31ec71f54046f827ef4ee4c6c6e7a0eb511 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 24 Jan 2021 15:56:48 +0900 Subject: [PATCH] Follow ngtcp2_conn_writev_stream specification change --- src/h2load_quic.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/h2load_quic.cc b/src/h2load_quic.cc index daae278d..86c85a4f 100644 --- a/src/h2load_quic.cc +++ b/src/h2load_quic.cc @@ -593,10 +593,10 @@ int Client::write_quic() { quic.last_error = quic::err_transport(nwrite); return -1; + } else if (ndatalen > 0 && s->add_write_offset(stream_id, ndatalen) != 0) { + return -1; } - assert(ndatalen == -1); - quic_restart_pkt_timer(); if (nwrite == 0) {