Unverified Commit 4f898068 authored by Russell Cohen's avatar Russell Cohen Committed by GitHub
Browse files

Aws config connector timeouts (#740)



* Add Timeouts to the HyperAdapter

This commit comes at timeouts from two directions:
1. Adds Connect & HTTP read timeouts to the Hyper Adapter in smithy-client
2. Refactors aws-config to use these providers and sets a custom configuration for IMDS

* Cache https connector with lazy_static

* Cleanups, docs naming

* Factor never service out of test_connection to fixup the dependency issues

* bring back hyper sanity test

* fix docs & clippy

* remove link to native_tls, it can't be built with default features

* Add missing copyright headers

* CR feedback

* cr feedback

* Fix docs

* remove license from test file

* Bring back the tokio license

* Update rust-runtime/smithy-client/src/hyper_impls.rs

fix typo

Co-authored-by: default avatarJohn DiSanti <jdisanti@amazon.com>

Co-authored-by: default avatarJohn DiSanti <jdisanti@amazon.com>
parent e3e6e0d2
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

use aws_config::imds::Client;
use std::error::Error;

+5 −0
Original line number Diff line number Diff line
/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#![no_main]
use aws_config::profile;
use aws_types::os_shim_internal::{Env, Fs};
+5 −0
Original line number Diff line number Diff line
/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#!/usr/bin/env node
import 'source-map-support/register';
import * as cdk from '@aws-cdk/core';
+5 −0
Original line number Diff line number Diff line
/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

module.exports = {
  testEnvironment: 'node',
  roots: ['<rootDir>/test'],
+5 −0
Original line number Diff line number Diff line
/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

import * as cdk from '@aws-cdk/core';
import * as eks from '@aws-cdk/aws-eks';
import * as dynamodb from '@aws-cdk/aws-dynamodb';
Loading