This is an automated email from the ASF dual-hosted git repository. warren pushed a commit to branch fix/http-client-timeout in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 04a263e4f11d2d597c3da45ab5e73cc30bac21f1 Author: warren <[email protected]> AuthorDate: Mon Mar 16 00:13:43 2026 +0800 fix: add timeout to HTTP client in StarRocks stream load The http.Client used for StarRocks stream load had no timeout configured, which could cause requests to hang indefinitely. Add a 60-second timeout. --- backend/plugins/starrocks/tasks/tasks.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/plugins/starrocks/tasks/tasks.go b/backend/plugins/starrocks/tasks/tasks.go index 79fbe5d2a..fab751761 100644 --- a/backend/plugins/starrocks/tasks/tasks.go +++ b/backend/plugins/starrocks/tasks/tasks.go @@ -394,6 +394,7 @@ func putBatchData(c plugin.SubTaskContext, starrocksTmpTable, table string, data return err } client := http.Client{ + Timeout: 60 * time.Second, CheckRedirect: func(req *http.Request, via []*http.Request) error { return http.ErrUseLastResponse },
