Skip to content

Commit fe2c7d9

Browse files
committed
Add a new timeout for HTTPS
1 parent c2c103f commit fe2c7d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dns-transport/src/https.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ impl Transport for HttpsTransport {
4242
fn send(&self, request: &Request, timeout: Option<Duration>) -> Result<Response, Error> {
4343
let client = reqwest::blocking::Client::builder()
4444
.connect_timeout(timeout)
45+
.timeout(timeout)
4546
.build()?;
4647

4748
debug!("Connected");

0 commit comments

Comments
 (0)