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

   When a plugin uses TSHttpTxnServerAddrSet() to set a server address and the 
connection fails, ATS should retry by calling the OS_DNS hook again to allow 
the plugin to provide an alternative address. However, the retry logic was 
missing handling for the USE_API case.
   
   **Changes:**
   - Added retry handling for ResolveInfo::OS_Addr::USE_API in 
handle_response_from_server()
   - Clears dns_info.resolved_p to trigger OS_DNS hook re-execution
   - Resets os_addr_style to TRY_DEFAULT to allow normal flow
   - Clears server_request to allow it to be rebuilt for new destination
   - Added api_server_addr_set_retried flag to prevent infinite retry loops
   - Added test plugin and autest to verify the fix
   - Updated TSHttpTxnServerAddrSet documentation to clarify retry behavior
   
   Fixes #12611


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