mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-06-20 11:19:09 +08:00
use connection timeout
This commit is contained in:
@@ -244,7 +244,7 @@ impl HttpPeer {
|
||||
let now = get_epoch_time_secs();
|
||||
let mut to_remove = vec![];
|
||||
for (event_id, (socket, _, _, ts)) in self.connecting.iter() {
|
||||
if ts + self.connection_opts.timeout < now {
|
||||
if ts + self.connection_opts.connect_timeout < now {
|
||||
debug!("Disconnect connecting HTTP peer {:?}", &socket);
|
||||
to_remove.push(*event_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user