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

   Fix RangeTransform on the stale-revalidate path when the fresh origin body 
is differs from the stale object size.
   
   For example, in the added AuTest, original object size was `64097 ` and 
updated size was `40000`, the second (revalidated) response from ATS was below 
without this patch: 
   ```
   HTTP/1.1 206 Partial Content
   Content-Range: bytes 0-64096/40000
   Content-Length: 64097
   ```
   while the actual response body size was 40000 bytes.
   
   To fix the issue, 
   
   1. Update `m_write_vio.ndone` in `RangeTransform::transform_to_range()`.
   2. Re-parse the Range against the fresh `Content-Length` from origin server.


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