← Commit list

56eca2afb4

Stefan Eissing
Stefan Eissing
2026-06-05
SUCCESS Duration: 294s

Subject

quic: count zero length packets against max

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/vquic/vquic.c+6 -2
@@ -508,8 +508,10 @@ static CURLcode recvmmsg_packets(struct Curl_cfilter *cf,
VERBOSE(++calls);
for(i = 0; i < mcount; ++i) {
/* A zero-length UDP packet is no QUIC packet. Ignore. */
- if(!mmsg[i].msg_len)
+ if(!mmsg[i].msg_len) {
+ ++pkts;
continue;
+ }
total_nread += mmsg[i].msg_len;
gso_size = vquic_msghdr_get_udp_gro(&mmsg[i].msg_hdr);
@@ -593,8 +595,10 @@ static CURLcode recvmsg_packets(struct Curl_cfilter *cf,
++calls;
/* A 0-length UDP packet is no QUIC packet */
- if(!nread)
+ if(!nread) {
+ ++pkts;
continue;
+ }
gso_size = vquic_msghdr_get_udp_gro(&msg);
if(gso_size == 0)