h2load: Set quic error code based on error from ngtcp2_conn_read_pkt
This commit is contained in:
parent
75272a817e
commit
3122a83900
|
@ -667,6 +667,11 @@ int Client::read_quic() {
|
||||||
timestamp(worker->loop));
|
timestamp(worker->loop));
|
||||||
if (rv != 0) {
|
if (rv != 0) {
|
||||||
std::cerr << "ngtcp2_conn_read_pkt: " << ngtcp2_strerror(rv) << std::endl;
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue