mirror of
https://github.com/aykhans/sarin.git
synced 2026-10-17 22:53:52 +00:00
chore(template): raise the remote file timeout to 30s
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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:** 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
|
## Table of Contents
|
||||||
|
|
||||||
|
|||||||
@@ -311,7 +311,7 @@ func NewSarin(
|
|||||||
logFile: logFile,
|
logFile: logFile,
|
||||||
hostClients: hostClients,
|
hostClients: hostClients,
|
||||||
scriptHTTPClients: scriptHTTPClients,
|
scriptHTTPClients: scriptHTTPClients,
|
||||||
fileCache: NewFileCache(time.Second * 10),
|
fileCache: NewFileCache(time.Second * 30),
|
||||||
scriptChain: scriptChain,
|
scriptChain: scriptChain,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user