Set more timeouts to 30s

This commit is contained in:
Geoff Stuart 2022-11-29 10:31:45 -05:00
parent dfbf4d0f43
commit 61ac270876
5 changed files with 18 additions and 18 deletions

View File

@ -26,7 +26,7 @@ GLOBAL OPTIONS:
--miner-repo value, --storagerepo value Specify miner repo path. flag storagerepo and env LOTUS_STORAGE_PATH are DEPRECATION, will REMOVE SOON (default: "~/.lotusminer") [$LOTUS_MINER_PATH, $LOTUS_STORAGE_PATH]
--version, -v print the version (default: false)
--worker-repo value, --workerrepo value Specify worker repo path. flag workerrepo and env WORKER_PATH are DEPRECATION, will REMOVE SOON (default: "~/.lotusworker") [$LOTUS_WORKER_PATH, $WORKER_PATH]
```
## lotus-worker run
@ -59,7 +59,7 @@ OPTIONS:
--unseal enable unsealing (32G sectors: 1 core, 128GiB Memory) (default: true) [$LOTUS_WORKER_UNSEAL]
--windowpost enable window post (default: false) [$LOTUS_WORKER_WINDOWPOST]
--winningpost enable winning post (default: false) [$LOTUS_WORKER_WINNINGPOST]
```
## lotus-worker stop
@ -72,7 +72,7 @@ USAGE:
OPTIONS:
--help, -h show help (default: false)
```
## lotus-worker info
@ -85,7 +85,7 @@ USAGE:
OPTIONS:
--help, -h show help (default: false)
```
## lotus-worker storage
@ -104,7 +104,7 @@ COMMANDS:
OPTIONS:
--help, -h show help (default: false)
```
### lotus-worker storage attach
@ -123,7 +123,7 @@ OPTIONS:
--seal (for init) use path for sealing (default: false)
--store (for init) use path for long-term storage (default: false)
--weight value (for init) path weight (default: 10)
```
### lotus-worker storage detach
@ -136,7 +136,7 @@ USAGE:
OPTIONS:
--really-do-it (default: false)
```
### lotus-worker storage redeclare
@ -151,7 +151,7 @@ OPTIONS:
--all redeclare all storage paths (default: false)
--drop-missing Drop index entries with missing files (default: false)
--id value storage path ID
```
## lotus-worker set
@ -164,7 +164,7 @@ USAGE:
OPTIONS:
--enabled enable/disable new task processing (default: true)
```
## lotus-worker wait-quiet
@ -177,7 +177,7 @@ USAGE:
OPTIONS:
--help, -h show help (default: false)
```
## lotus-worker resources
@ -191,7 +191,7 @@ USAGE:
OPTIONS:
--all print all resource envvars (default: false)
--default print default resource envvars (default: false)
```
## lotus-worker tasks
@ -209,7 +209,7 @@ COMMANDS:
OPTIONS:
--help, -h show help (default: false)
```
### lotus-worker tasks enable
@ -222,7 +222,7 @@ USAGE:
OPTIONS:
--help, -h show help (default: false)
```
### lotus-worker tasks disable
@ -235,5 +235,5 @@ USAGE:
OPTIONS:
--help, -h show help (default: false)
```

View File

@ -25,7 +25,7 @@ func CreateRPCServer(t *testing.T, handler http.Handler, listener net.Listener)
Listener: listener,
Config: &http.Server{
Handler: handler,
ReadHeaderTimeout: 3 * time.Second,
ReadHeaderTimeout: 30 * time.Second,
},
}
testServ.Start()

View File

@ -53,7 +53,7 @@ func ServeRPC(h http.Handler, id string, addr multiaddr.Multiaddr) (StopFunc, er
// Instantiate the server and start listening.
srv := &http.Server{
Handler: h,
ReadHeaderTimeout: 3 * time.Second,
ReadHeaderTimeout: 30 * time.Second,
BaseContext: func(listener net.Listener) context.Context {
ctx, _ := tag.New(context.Background(), tag.Upsert(metrics.APIInterface, id))
return ctx

View File

@ -182,7 +182,7 @@ func startFullNodeAPIServer(t *TestEnvironment, repo repo.Repo, napi api.FullNod
Next: mux.ServeHTTP,
}
srv := &http.Server{Handler: ah, ReadHeaderTimeout: 3 * time.Second}
srv := &http.Server{Handler: ah, ReadHeaderTimeout: 30 * time.Second}
endpoint, err := repo.APIEndpoint()
if err != nil {

View File

@ -638,7 +638,7 @@ func startStorageMinerAPIServer(t *TestEnvironment, repo repo.Repo, minerApi api
return nil, fmt.Errorf("no API endpoint in repo: %w", err)
}
srv := &http.Server{Handler: ah, ReadHeaderTimeout: 3 * time.Second}
srv := &http.Server{Handler: ah, ReadHeaderTimeout: 30 * time.Second}
listenAddr, err := startServer(endpoint, srv)
if err != nil {