Commit 3122a839 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

h2load: Set quic error code based on error from ngtcp2_conn_read_pkt

parent 75272a81
...@@ -667,6 +667,11 @@ int Client::read_quic() { ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment