bryancall commented on issue #12428: URL: https://github.com/apache/trafficserver/issues/12428#issuecomment-4828271338
This was fixed by [PR #12446](https://github.com/apache/trafficserver/pull/12446) "Retry connect if server closes before receiving response", merged on 2025-08-19 and first released in 10.1.1. The regression was that the `VC_EVENT_EOS` case in `state_read_server_response_header` fell through into the `READ_READY`/`READ_COMPLETE` case, which unconditionally maximized `retry_attempts` and disabled retries even when zero response bytes had been received. PR #12446 gave `VC_EVENT_EOS` its own branch and now only disables retries when some response bytes have already arrived (`if (server_response_hdr_bytes > 0)`), restoring the 9.2 behavior of retrying when the origin closes a keep-alive connection before any response is read. You can see the current behavior on master here: https://github.com/apache/trafficserver/blob/master/src/proxy/http/HttpSM.cc This addresses the exact 502 case described, so I am closing it. If a configurable knob for the bytes-already-received case is still wanted, that can be tracked as a separate enhancement. -- 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]
