hnakamur commented on issue #11038: URL: https://github.com/apache/trafficserver/issues/11038#issuecomment-1959196817
I found this issue is reproducible in [9.3.2](https://github.com/hnakamur/ats-nginx-bad-request/tree/ats-9.2.3) or [10.0.x](https://github.com/hnakamur/ats-nginx-bad-request/tree/ats-10.0.x). Also I did [another experiment](https://github.com/hnakamur/ats-nginx-bad-request/tree/ats-submodule) with [a debug log added](https://github.com/hnakamur/trafficserver/tree/debug_post_buffer_write):. In https://github.com/hnakamur/ats-nginx-bad-request/blob/ats-submodule/tcpdump-nginx-2b.log, ATS sent request body of [length 344](https://github.com/hnakamur/ats-nginx-bad-request/blob/3450f72a4c07b42e0d63323b527402c12c66a97b/tcpdump-nginx-2b.log#L36) as opposed to [Content-Length: 1024](https://github.com/hnakamur/ats-nginx-bad-request/blob/3450f72a4c07b42e0d63323b527402c12c66a97b/tcpdump-nginx-2b.log#L6) request header. I found reader_start_offset (`_ua.get_txn()->get_remote_reader()->start_offset`) is always `3752` when written partial body length is `344` in [start_offset.log](https://github.com/hnakamur/ats-nginx-bad-request/blob/eedd742ef0d600fa3ceb409bca1b825b819efb61/start_offset.log). ``` $ grep -c num_body_bytes=344, start_offset.log 64 $ grep num_body_bytes=344, start_offset.log | grep -c -v reader_start_offset=3752 0 ``` I noticed the sum of `3752` and `344` is 4096 (4KiB). ``` $ echo '3752 + 344' | bc 4096 ``` I still don't have a clue why this issue happens. -- 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]
