Fixed unimportant warning, and changed some constants in DoH client.

pull/291/head^2
Revertron 2 years ago
parent 0d50fc44c6
commit aa246571a7

@ -1,6 +1,6 @@
[package]
name = "alfis"
version = "0.8.3"
version = "0.8.4"
authors = ["Revertron <alfis@revertron.com>"]
edition = "2021"
build = "build.rs"

@ -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(':') {

Loading…
Cancel
Save