JakeChampion opened a new pull request, #12905:
URL: https://github.com/apache/trafficserver/pull/12905

   When an origin sends 100 Continue before a compressible response, 
`setup_100_continue_transfer()` sets `client_response_hdr_bytes` to the 
intermediate header size.
   The subsequent call to `setup_server_transfer_to_transform()` creates the 
tunnel buffer with `hdr_size=0` - body only, but `client_response_hdr_bytes` is 
not reset for non-chunked responses.
   
   `perform_cache_write_action()` then passes the stale value as `skip_bytes` 
to the cache-write consumer, causing `ink_release_assert(c->skip_bytes <= 
c->buffer_reader->read_avail())` to fire in `producer_run` when the response 
body is smaller than the 100 Continue headers.
   
   Fix: set `cache_write_skip` to `0` whenever a transform is present, since 
`setup_server_transfer_to_transform()` never writes headers into the tunnel 
buffer.
   
   Fixes: #12244


-- 
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]

Reply via email to