diff --git a/documentation/en/cli-lotus-worker.md b/documentation/en/cli-lotus-worker.md index 4c0695dab..74b7a19b8 100644 --- a/documentation/en/cli-lotus-worker.md +++ b/documentation/en/cli-lotus-worker.md @@ -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) - + ``` diff --git a/itests/kit/rpc.go b/itests/kit/rpc.go index badd068d7..f8c2c6e53 100644 --- a/itests/kit/rpc.go +++ b/itests/kit/rpc.go @@ -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() diff --git a/node/rpc.go b/node/rpc.go index 2dc00e863..34f680973 100644 --- a/node/rpc.go +++ b/node/rpc.go @@ -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 diff --git a/testplans/lotus-soup/testkit/role_client.go b/testplans/lotus-soup/testkit/role_client.go index 7cd0e4c4a..e613bb235 100644 --- a/testplans/lotus-soup/testkit/role_client.go +++ b/testplans/lotus-soup/testkit/role_client.go @@ -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 { diff --git a/testplans/lotus-soup/testkit/role_miner.go b/testplans/lotus-soup/testkit/role_miner.go index 1eb405714..a86e84bbe 100644 --- a/testplans/lotus-soup/testkit/role_miner.go +++ b/testplans/lotus-soup/testkit/role_miner.go @@ -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 {