Fix flaky test_send_thread_safety in Task SDK comms tests (#67811)
The test assumed concurrent send() calls would be answered in thread-index order, but the order in which the requests reach the socket is not deterministic, so the parent must not hard-code a per-thread response order. The parent now reads each request off the socket and echoes a response built from that request's own body, so every thread reliably receives the response to its own message regardless of scheduling. Production code is unchanged.
J
Jarek Potiuk committed
f5b1161577fe31e739f924119672b2485b8e2954
Parent: 9b48d89
Committed by GitHub <noreply@github.com>
on 6/1/2026, 5:30:57 AM