From 9d6e4e6bf8df733349a12d9d064f19a83d4a49ce Mon Sep 17 00:00:00 2001 From: Aykhan Shahsuvarov Date: Tue, 29 Sep 2026 22:59:42 +0400 Subject: [PATCH] chore(template): raise the remote file timeout to 30s --- docs/templating.md | 2 +- internal/sarin/runner.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/templating.md b/docs/templating.md index ec98792..66ad527 100644 --- a/docs/templating.md +++ b/docs/templating.md @@ -4,7 +4,7 @@ Sarin supports Go templates in URL paths, methods, bodies, headers, params, cook > **Note:** Templating in URL host and scheme is not supported. Only the path portion of the URL can contain templates. -> **Note:** Template rendering happens before the request is sent. The request timeout (`-T` / `timeout`) only governs the HTTP request itself and starts _after_ templates have finished rendering, so slow template functions (e.g. captcha solvers, remote `file_Read`) cannot cause a request timeout no matter how long they take. +> **Note:** Template rendering happens before the request is sent. The request timeout (`-T` / `timeout`) only governs the HTTP request itself and starts _after_ templates have finished rendering, so slow template functions (e.g. captcha solvers, remote `file_Read`) cannot cause a request timeout no matter how long they take. Downloads have their own limits: 30 seconds and 64MiB per file. ## Table of Contents diff --git a/internal/sarin/runner.go b/internal/sarin/runner.go index 60b72e8..225aae7 100644 --- a/internal/sarin/runner.go +++ b/internal/sarin/runner.go @@ -311,7 +311,7 @@ func NewSarin( logFile: logFile, hostClients: hostClients, scriptHTTPClients: scriptHTTPClients, - fileCache: NewFileCache(time.Second * 10), + fileCache: NewFileCache(time.Second * 30), scriptChain: scriptChain, }