fix: S3 Feature: please add s3.idleTimeout command line parameter #6746 #6747
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What problem are we solving?
Issue #6746: S3 Feature: please add s3.idleTimeout command line parameter
( #6746 )
How are we solving the problem?
Following the command line parameter scheme, I have adde "idleTimeout" parameter to the S3 standalone and "s3.idleTimeout" to the server and filer options. I have kept the default value 10
How is the PR tested?
weed s3 without idleTimeout parameter:
time telnet 127.0.0.1 8333
Connected to 127.0.0.1.
telnet: Connection closed by foreign host
real 10.030
user 0.15000
sys 0.000
weed s3 with -idleTimeout=20:
time telnet 127.0.0.1 8333
Connected to 127.0.0.1.
telnet: Connection closed by foreign host
real 20.033
user 0.000
sys 0.000
weed server with filer and s3 API without idleTimeout parameter:
time telnet 127.0.0.1 8333
Connected to 127.0.0.1.
telnet: Connection closed by foreign host
real 10.031
user 0.000
sys 0.30000
weed server with filer and s3 API with -s3.idleTime=30:
time telnet 127.0.0.1 8333
Connected to 127.0.0.1.
telnet: Connection closed by foreign host
real 30.034
user 0.000
sys 0.61000
weed filer with s3 API without idleTimeout parameter:
Checks