1 Commits
Author SHA1 Message Date
Damiano Donati ef964f3028 gok logs: fix data race on http.Client.CheckRedirect
eventsource.SubscribeWith mutates the passed http.Client's
CheckRedirect field. Since streamLog is called concurrently for
stdout and stderr, this is a data race. Clone the client before
passing it to the library.

Add TestStreamLogConcurrentCancel to exercise both the concurrent
client usage and context cancellation under the race detector.
2026-06-23 08:58:23 +02:00