bneradt opened a new pull request, #14021: URL: https://github.com/apache/trafficserver/pull/14021
Every quiche-backed QUIC connection re-armed a packet write event every 2 ms for its whole lifetime, idle or not. Each tick walked the writable streams and bounced VC_EVENT_WRITE_READY through Http3App to any open request stream, even with nothing to send. An open but idle request stream produced hundreds of these events per second, and the CPU cost grew with the number of open connections rather than with load. This patch makes sending event driven. A write pass is scheduled when a stream reports new data, when packets arrive, when quiche's timer fires, and when a close is queued. A pass that sent packets is followed by another in case the send quantum or stream budgets left data behind; a pass that sent nothing ends the chain. The HTTP/3 control stream and the QPACK encoder and decoder streams, which wrote into their buffers and relied on the next poll to send it, now reenable their VIOs after writing so the connection knows to send. A new urtest holds an HTTP/3 request stream open and idle and checks that ATS does not keep signaling it with WRITE_READY events. Fixes: #14020 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
