Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
97243f3a
Unverified
Commit
97243f3a
authored
Mar 16, 2020
by
winsvega
Committed by
GitHub
Mar 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
geth retesteth: increase retesteth default http timeouts (#20767)
parent
241b2836
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
retesteth.go
cmd/geth/retesteth.go
+6
-1
No files found.
cmd/geth/retesteth.go
View file @
97243f3a
...
...
@@ -889,8 +889,13 @@ func retesteth(ctx *cli.Context) error {
cors
:=
splitAndTrim
(
ctx
.
GlobalString
(
utils
.
RPCCORSDomainFlag
.
Name
))
// start http server
var
RetestethHTTPTimeouts
=
rpc
.
HTTPTimeouts
{
ReadTimeout
:
120
*
time
.
Second
,
WriteTimeout
:
120
*
time
.
Second
,
IdleTimeout
:
120
*
time
.
Second
,
}
httpEndpoint
:=
fmt
.
Sprintf
(
"%s:%d"
,
ctx
.
GlobalString
(
utils
.
RPCListenAddrFlag
.
Name
),
ctx
.
Int
(
rpcPortFlag
.
Name
))
listener
,
_
,
err
:=
rpc
.
StartHTTPEndpoint
(
httpEndpoint
,
rpcAPI
,
[]
string
{
"test"
,
"eth"
,
"debug"
,
"web3"
},
cors
,
vhosts
,
rpc
.
Default
HTTPTimeouts
)
listener
,
_
,
err
:=
rpc
.
StartHTTPEndpoint
(
httpEndpoint
,
rpcAPI
,
[]
string
{
"test"
,
"eth"
,
"debug"
,
"web3"
},
cors
,
vhosts
,
Retesteth
HTTPTimeouts
)
if
err
!=
nil
{
utils
.
Fatalf
(
"Could not start RPC api: %v"
,
err
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment