Fixed unimportant warning, and changed some constants in DoH client.
This commit is contained in:
+3
-2
@@ -7,6 +7,7 @@ use std::marker::{Send, Sync};
|
||||
use std::net::{SocketAddr, TcpStream, ToSocketAddrs, UdpSocket};
|
||||
#[cfg(feature = "doh")]
|
||||
use std::net::IpAddr;
|
||||
#[cfg(feature = "doh")]
|
||||
use std::num::NonZeroUsize;
|
||||
use std::sync::atomic::{AtomicUsize, Ordering, AtomicBool};
|
||||
use std::sync::mpsc::{channel, Sender};
|
||||
@@ -406,8 +407,8 @@ impl HttpsDnsClient {
|
||||
|
||||
let agent = ureq::AgentBuilder::new()
|
||||
.user_agent(&client_name)
|
||||
.timeout(std::time::Duration::from_secs(5))
|
||||
.max_idle_connections_per_host(2)
|
||||
.timeout(std::time::Duration::from_secs(3))
|
||||
.max_idle_connections_per_host(4)
|
||||
.max_idle_connections(16)
|
||||
.resolver(move |addr: &str| {
|
||||
let addr = match addr.find(':') {
|
||||
|
||||
Reference in New Issue
Block a user