Update default peer TCP connect timeout to 10s
This commit is contained in:
parent
f2c509359f
commit
18b99c91a1
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ impl<H: PeerConnectionHandler> PeerConnection<H> {
|
|||
let mut conn = match timeout(
|
||||
self.options
|
||||
.connect_timeout
|
||||
.unwrap_or_else(|| Duration::from_secs(2)),
|
||||
.unwrap_or_else(|| Duration::from_secs(10)),
|
||||
tokio::net::TcpStream::connect(self.addr),
|
||||
)
|
||||
.await
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue