Set more timeouts to 30s
This commit is contained in:
parent
dfbf4d0f43
commit
61ac270876
@ -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]
|
--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)
|
--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]
|
--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
|
## lotus-worker run
|
||||||
@ -59,7 +59,7 @@ OPTIONS:
|
|||||||
--unseal enable unsealing (32G sectors: 1 core, 128GiB Memory) (default: true) [$LOTUS_WORKER_UNSEAL]
|
--unseal enable unsealing (32G sectors: 1 core, 128GiB Memory) (default: true) [$LOTUS_WORKER_UNSEAL]
|
||||||
--windowpost enable window post (default: false) [$LOTUS_WORKER_WINDOWPOST]
|
--windowpost enable window post (default: false) [$LOTUS_WORKER_WINDOWPOST]
|
||||||
--winningpost enable winning post (default: false) [$LOTUS_WORKER_WINNINGPOST]
|
--winningpost enable winning post (default: false) [$LOTUS_WORKER_WINNINGPOST]
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## lotus-worker stop
|
## lotus-worker stop
|
||||||
@ -72,7 +72,7 @@ USAGE:
|
|||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
--help, -h show help (default: false)
|
--help, -h show help (default: false)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## lotus-worker info
|
## lotus-worker info
|
||||||
@ -85,7 +85,7 @@ USAGE:
|
|||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
--help, -h show help (default: false)
|
--help, -h show help (default: false)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## lotus-worker storage
|
## lotus-worker storage
|
||||||
@ -104,7 +104,7 @@ COMMANDS:
|
|||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
--help, -h show help (default: false)
|
--help, -h show help (default: false)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### lotus-worker storage attach
|
### lotus-worker storage attach
|
||||||
@ -123,7 +123,7 @@ OPTIONS:
|
|||||||
--seal (for init) use path for sealing (default: false)
|
--seal (for init) use path for sealing (default: false)
|
||||||
--store (for init) use path for long-term storage (default: false)
|
--store (for init) use path for long-term storage (default: false)
|
||||||
--weight value (for init) path weight (default: 10)
|
--weight value (for init) path weight (default: 10)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### lotus-worker storage detach
|
### lotus-worker storage detach
|
||||||
@ -136,7 +136,7 @@ USAGE:
|
|||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
--really-do-it (default: false)
|
--really-do-it (default: false)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### lotus-worker storage redeclare
|
### lotus-worker storage redeclare
|
||||||
@ -151,7 +151,7 @@ OPTIONS:
|
|||||||
--all redeclare all storage paths (default: false)
|
--all redeclare all storage paths (default: false)
|
||||||
--drop-missing Drop index entries with missing files (default: false)
|
--drop-missing Drop index entries with missing files (default: false)
|
||||||
--id value storage path ID
|
--id value storage path ID
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## lotus-worker set
|
## lotus-worker set
|
||||||
@ -164,7 +164,7 @@ USAGE:
|
|||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
--enabled enable/disable new task processing (default: true)
|
--enabled enable/disable new task processing (default: true)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## lotus-worker wait-quiet
|
## lotus-worker wait-quiet
|
||||||
@ -177,7 +177,7 @@ USAGE:
|
|||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
--help, -h show help (default: false)
|
--help, -h show help (default: false)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## lotus-worker resources
|
## lotus-worker resources
|
||||||
@ -191,7 +191,7 @@ USAGE:
|
|||||||
OPTIONS:
|
OPTIONS:
|
||||||
--all print all resource envvars (default: false)
|
--all print all resource envvars (default: false)
|
||||||
--default print default resource envvars (default: false)
|
--default print default resource envvars (default: false)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## lotus-worker tasks
|
## lotus-worker tasks
|
||||||
@ -209,7 +209,7 @@ COMMANDS:
|
|||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
--help, -h show help (default: false)
|
--help, -h show help (default: false)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### lotus-worker tasks enable
|
### lotus-worker tasks enable
|
||||||
@ -222,7 +222,7 @@ USAGE:
|
|||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
--help, -h show help (default: false)
|
--help, -h show help (default: false)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### lotus-worker tasks disable
|
### lotus-worker tasks disable
|
||||||
@ -235,5 +235,5 @@ USAGE:
|
|||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
--help, -h show help (default: false)
|
--help, -h show help (default: false)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -25,7 +25,7 @@ func CreateRPCServer(t *testing.T, handler http.Handler, listener net.Listener)
|
|||||||
Listener: listener,
|
Listener: listener,
|
||||||
Config: &http.Server{
|
Config: &http.Server{
|
||||||
Handler: handler,
|
Handler: handler,
|
||||||
ReadHeaderTimeout: 3 * time.Second,
|
ReadHeaderTimeout: 30 * time.Second,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
testServ.Start()
|
testServ.Start()
|
||||||
|
@ -53,7 +53,7 @@ func ServeRPC(h http.Handler, id string, addr multiaddr.Multiaddr) (StopFunc, er
|
|||||||
// Instantiate the server and start listening.
|
// Instantiate the server and start listening.
|
||||||
srv := &http.Server{
|
srv := &http.Server{
|
||||||
Handler: h,
|
Handler: h,
|
||||||
ReadHeaderTimeout: 3 * time.Second,
|
ReadHeaderTimeout: 30 * time.Second,
|
||||||
BaseContext: func(listener net.Listener) context.Context {
|
BaseContext: func(listener net.Listener) context.Context {
|
||||||
ctx, _ := tag.New(context.Background(), tag.Upsert(metrics.APIInterface, id))
|
ctx, _ := tag.New(context.Background(), tag.Upsert(metrics.APIInterface, id))
|
||||||
return ctx
|
return ctx
|
||||||
|
@ -182,7 +182,7 @@ func startFullNodeAPIServer(t *TestEnvironment, repo repo.Repo, napi api.FullNod
|
|||||||
Next: mux.ServeHTTP,
|
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()
|
endpoint, err := repo.APIEndpoint()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -638,7 +638,7 @@ func startStorageMinerAPIServer(t *TestEnvironment, repo repo.Repo, minerApi api
|
|||||||
return nil, fmt.Errorf("no API endpoint in repo: %w", err)
|
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)
|
listenAddr, err := startServer(endpoint, srv)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user