daniel-pinder opened a new pull request, #14067:
URL: https://github.com/apache/trafficserver/pull/14067

   Fixes #14058
   
   One hunk inside `find_server_and_update_current_info`'s
   `if (nullptr != hostname)` block in the `SPECIFIED` branch — the only place 
the
   parent identity is overwritten — immediately before
   `s->parent_info.name = ...`. If `dst_addr` is valid and the selected parent's
   hostname or port differs from the one that address belongs to, call
   `ats_ip_invalidate(&s->parent_info.dst_addr)`, so the existing
   `dst_addr.isValid()` gate re-resolves for the parent just selected. A
   same-parent retry is unchanged (both identity components equal → no-op). The
   port comparison matters for one host configured twice under different ports.
   The change uses the `ats_ip_invalidate` idiom already present in the same 
file.
   
   ```c
   if (nullptr != hostname) {
     if (s->parent_info.dst_addr.isValid() &&
         (s->parent_info.name == nullptr || strcmp(s->parent_info.name, 
hostname) != 0 ||
          s->parent_info.dst_addr.network_order_port() != 
htons(s->parent_result.port))) {
       ats_ip_invalidate(&s->parent_info.dst_addr);
     }
   
     s->parent_info.name = s->arena.str_store(hostname, strlen(hostname));
   ```
   
   The PR also carries
   `tests/uranium_tests/parent_proxy/test_stale_parent_dst_addr.py`, which 
fails on
   the unpatched tree and passes with the hunk.
   
   ## Evidence
   
   Built with FibreTel's qualified sandbox recipe adapted to a pinned commit
   (Debian 13 base, same dependency set and install directories; source fetched 
by
   commit sha, verified with `git rev-parse`):
   
   - source: `apache/trafficserver` `master` 
`0607aefe2cb2e675e329c8ecac43601dcd3fa23b`
     (2026-11-12, "QUIC: one OpenSSL QUIC listener per net thread (#14035)")
   - pristine image: `traffic_server` sha256
     `dfdccf33520971efe2ccf6b5ae14fcdd4dc0722582584f3d386c8db9e5b4c7ae`
   - patched image (final hunk placement inside the `nullptr != hostname` 
block):
     `traffic_server` 
d9040a849b83bc4b159f48095028c5dade160a79f1f3b472edf1a5ee592264d0 (patch sha256 
4ddcf061399222ab9c5033c0dd322056f05a400a446c534b52c9729d04a0e8e8)
   
   **RED** — pristine master, 
`tests/uranium_tests/parent_proxy/test_stale_parent_dst_addr.py`:
   
   ```
   HTTP/1 Status Violation: expected 200 got 503, key: stale-parent-retry
   1 failed, 1615 deselected
   ```
   
   **GREEN** — patched, the identical test file:
   
   ```
   1 passed, 1614 deselected
   ```
   
   Trace: on pristine, `Retry result for origin.test was parent parent-c.test`
   appears with no subsequent `PPDNSLookup` for it; on the patched build the 
same
   sequence is followed by `Entering HttpTransact::PPDNSLookup` and
   `DNS lookup for successful IP: 127.0.0.1:<parent-c port>`.
   
   **No regressions** — the neighbouring `parent_proxy` tests on the patched
   build: `test_parent_retry`, `test_bypass_parent_connect`,
   `test_consistent_hash_ring_walk` — `3 passed, 1612 deselected`.
   


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