mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-20 00:56:30 +00:00
s3sink, s3src: Max 1 (re)try when retry-duration < request_timeout.
When retry-duration is less than request_timeout, only 1 try is attempted.
This commit is contained in:
parent
62f76e1e8b
commit
45962eca1c
2 changed files with 2 additions and 2 deletions
|
@ -852,7 +852,7 @@ impl ObjectImpl for S3Sink {
|
|||
let retry_attempts = if value > request_timeout {
|
||||
value / request_timeout
|
||||
} else {
|
||||
request_timeout / value
|
||||
1
|
||||
};
|
||||
settings.retry_attempts = retry_attempts as u32;
|
||||
}
|
||||
|
|
|
@ -383,7 +383,7 @@ impl ObjectImpl for S3Src {
|
|||
let retry_attempts = if value > request_timeout {
|
||||
value / request_timeout
|
||||
} else {
|
||||
request_timeout / value
|
||||
1
|
||||
};
|
||||
settings.retry_attempts = retry_attempts as u32;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue