s3: prevent infinite retries and limit the amount of seconds to 384