network: record cause of handshake failure
This commit is contained in:
parent
1606b28d14
commit
00c4f4f0e6
|
@ -293,7 +293,10 @@ where
|
||||||
handshakes.push(
|
handshakes.push(
|
||||||
connector
|
connector
|
||||||
.call(candidate.addr)
|
.call(candidate.addr)
|
||||||
.map_err(move |_| candidate)
|
.map_err(move |e| {
|
||||||
|
debug!(?candidate.addr, ?e, "failed to connect to candidate");
|
||||||
|
candidate
|
||||||
|
})
|
||||||
.boxed(),
|
.boxed(),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
@ -318,7 +321,7 @@ where
|
||||||
success_tx.send(Ok(change)).await?;
|
success_tx.send(Ok(change)).await?;
|
||||||
}
|
}
|
||||||
Right((Some(Err(candidate)), _)) => {
|
Right((Some(Err(candidate)), _)) => {
|
||||||
debug!(?candidate.addr, "failed to connect to peer");
|
debug!(?candidate.addr, "marking candidate as failed");
|
||||||
candidates.report_failed(candidate);
|
candidates.report_failed(candidate);
|
||||||
// The demand signal that was taken out of the queue
|
// The demand signal that was taken out of the queue
|
||||||
// to attempt to connect to the failed candidate never
|
// to attempt to connect to the failed candidate never
|
||||||
|
|
Loading…
Reference in New Issue