Compare commits

...

2 Commits

Author SHA1 Message Date
Tatsuhiro Tsujikawa
8f729331c1 Merge pull request #2540 from nghttp2/nghttpx-quic-recv-pktcnt
nghttpx: Increase number of UDP packets to read
2025-10-13 19:14:15 +09:00
Tatsuhiro Tsujikawa
a25dd12811 nghttpx: Increase number of UDP packets to read
It turns out that the limit of 10 packets per event loop is too small,
that prevents an endpoint from consuming ACKs and other control frames
(e.g., MAX_STREAM_DATA, MAX_STREAMS), resulting in the loss of
throughput.  This change increases maximum number of packets to read
to 64.
2025-10-13 18:35:42 +09:00

View File

@@ -69,7 +69,7 @@ void QUICListener::on_read() {
auto quic_conn_handler = worker_->get_quic_connection_handler();
for (; pktcnt < 10;) {
for (; pktcnt < 64;) {
msg.msg_namelen = sizeof(remote_addr.su);
msg.msg_controllen = sizeof(msg_ctrl);