We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3bb29c commit 4a4903eCopy full SHA for 4a4903e
main.go
@@ -37,6 +37,7 @@ var (
37
useSsl = flag.String("ssl", "", "SSL flag")
38
syncRet = flag.String("sync_exp", "", "sync expected return code in format code:string")
39
hasDownloadFile = flag.Bool("d", false, "set to true to take advantage of downloadFile API")
40
+ timeoutSeconds = flag.Int("t", 10, "Upload timeout")
41
)
42
43
type Item struct {
@@ -53,7 +54,7 @@ func main() {
53
54
}
55
56
var httpClient = &http.Client{
- Timeout: time.Second * 10,
57
+ Timeout: time.Second * time.Duration(*timeoutSeconds),
58
59
60
httpheader := "http://"
0 commit comments