nghttpx: Use buf.size()
This commit is contained in:
parent
2010401b81
commit
bed00fb8e1
|
@ -1538,8 +1538,7 @@ int Http3Upstream::handle_error() {
|
||||||
|
|
||||||
if (last_error_.type == quic::ErrorType::Transport) {
|
if (last_error_.type == quic::ErrorType::Transport) {
|
||||||
nwrite = ngtcp2_conn_write_connection_close(
|
nwrite = ngtcp2_conn_write_connection_close(
|
||||||
conn_, &ps.path, &pi, buf.data(), SHRPX_MAX_UDP_PAYLOAD_SIZE,
|
conn_, &ps.path, &pi, buf.data(), buf.size(), last_error_.code, ts);
|
||||||
last_error_.code, ts);
|
|
||||||
if (nwrite < 0) {
|
if (nwrite < 0) {
|
||||||
LOG(ERROR) << "ngtcp2_conn_write_connection_close: "
|
LOG(ERROR) << "ngtcp2_conn_write_connection_close: "
|
||||||
<< ngtcp2_strerror(nwrite);
|
<< ngtcp2_strerror(nwrite);
|
||||||
|
@ -1547,8 +1546,7 @@ int Http3Upstream::handle_error() {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
nwrite = ngtcp2_conn_write_application_close(
|
nwrite = ngtcp2_conn_write_application_close(
|
||||||
conn_, &ps.path, &pi, buf.data(), SHRPX_MAX_UDP_PAYLOAD_SIZE,
|
conn_, &ps.path, &pi, buf.data(), buf.size(), last_error_.code, ts);
|
||||||
last_error_.code, ts);
|
|
||||||
if (nwrite < 0) {
|
if (nwrite < 0) {
|
||||||
LOG(ERROR) << "ngtcp2_conn_write_application_close: "
|
LOG(ERROR) << "ngtcp2_conn_write_application_close: "
|
||||||
<< ngtcp2_strerror(nwrite);
|
<< ngtcp2_strerror(nwrite);
|
||||||
|
|
Loading…
Reference in New Issue