Skip to content

Commit

Permalink
fix: Use conn_timeout fir telnet connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Edouard Lavaud authored and k-ribot committed Nov 4, 2024
1 parent e34b895 commit e700a0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netmiko/base_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1115,12 +1115,12 @@ def establish_connection(self, width: int = 511, height: int = 1000) -> None:
self.remote_conn = telnet_proxy.Telnet(
self.host,
port=self.port,
timeout=self.timeout,
timeout=self.conn_timeout,
proxy_dict=self.sock_telnet,
)
else:
self.remote_conn = telnetlib.Telnet( # type: ignore
self.host, port=self.port, timeout=self.timeout
self.host, port=self.port, timeout=self.conn_timeout
)
# Migrating communication to channel class
self.channel = TelnetChannel(conn=self.remote_conn, encoding=self.encoding)
Expand Down

0 comments on commit e700a0c

Please sign in to comment.