Race condition: concurrent mutation of cached endpoint URL
Race condition: concurrent mutation of cached endpoint URL: a task in LegoFlow-SWE (Harbor dataset). The endpoint discovery middleware caches url.URL values and returns the same pointer to multiple goroutines. When concurrent requests (e.g., Timestream WriteRecords ) modify the URL (Host, Scheme…
The task
The endpoint discovery middleware caches `*url.URL` values and returns the same pointer to multiple goroutines. When concurrent requests (e.g., Timestream `WriteRecords`) modify the URL (Host, Scheme, Path, RawQuery, Fragment, User, etc.) the changes corrupt the URL seen by other in‑flight requests.
Part of Lego-X/LegoFlow-SWE.