Skip to content

How to control s3 upload by time not by number of retry. #2668

Answered by sbiscigl
ShimYama asked this question in Q&A
Discussion options

You must be logged in to vote

theres a client configuration called lowSpeedLimit if you are using a curl http client.

/**
 * Average transfer speed in bytes per second that the transfer should be 
 * below during the request timeout interval for it to be considered too slow and abort.
 * Default 1 byte/second. Only for CURL client currently.
 */
unsigned long lowSpeedLimit = 1;

curl documentation. this will abort a request and return a error if the overall transfer rate drops too low.

alternatively for windows there is requestTimeoutMs.

/**
 * Socket read timeouts for HTTP clients on Windows. Default 3000 ms. 
 * This should be more than adequate for most services. However, 
 * if you are transferring large amounts of…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ShimYama
Comment options

@jmklix
Comment options

@ShimYama
Comment options

@sbiscigl
Comment options

Answer selected by jmklix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants