h2load: Set quic error code based on error from ngtcp2_conn_read_pkt

This commit is contained in:
Tatsuhiro Tsujikawa 2022-01-23 23:47:40 +09:00
parent 75272a817e
commit 3122a83900
1 changed files with 5 additions and 0 deletions

View File

@ -667,6 +667,11 @@ int Client::read_quic() {
timestamp(worker->loop));
if (rv != 0) {
std::cerr << "ngtcp2_conn_read_pkt: " << ngtcp2_strerror(rv) << std::endl;
if (!quic.last_error.code) {
quic.last_error = quic::err_transport(rv);
}
return -1;
}