You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by "JakeChampion (via GitHub)" <gi...@apache.org> on 2025/09/05 15:30:19 UTC
[PR] fix skip_bytes crash by setting correct cache-write header skip [trafficserver]
JakeChampion opened a new pull request, #12482:
URL: https://github.com/apache/trafficserver/pull/12482
This assert failed:
- Fatal: src/proxy/http/HttpTunnel.cc:1005: failed assertion `c->skip_bytes <= c->buffer_reader->read_avail()`
It was triggered when CACHE_WRITE read from a dechunked buffer while a TRANSFORM consumer was present (header not in that buffer)
I think the root cause is this:
- HttpSM passed client_response_hdr_bytes as skip_bytes to CACHE_WRITE unconditionally
- In DECHUNK_CONTENT or PASSTHRU_CHUNKED_CONTENT with a transform consumer, header bytes aren’t copied to the dechunked buffer, so c->buffer_reader->read_avail() < skip_bytes and the tunnel assert fired
--
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: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix skip_bytes crash by setting correct cache-write header skip [trafficserver]
Posted by "JakeChampion (via GitHub)" <gi...@apache.org>.
JakeChampion closed pull request #12482: fix skip_bytes crash by setting correct cache-write header skip
URL: https://github.com/apache/trafficserver/pull/12482
--
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: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org