mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-16 16:54:51 +02:00
Update telnet_server.py
Maybe use the correct object name this time for the socket objects.
This commit is contained in:
parent
385fffec56
commit
54abf85523
@ -192,9 +192,9 @@ class AsyncioTelnetServer:
|
|||||||
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
|
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
|
||||||
# 60 sec keep alives, close tcp session after 4 missed
|
# 60 sec keep alives, close tcp session after 4 missed
|
||||||
# Will keep a firewall from aging out telnet console.
|
# Will keep a firewall from aging out telnet console.
|
||||||
writer_sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPIDLE, 60)
|
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPIDLE, 60)
|
||||||
writer_sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPINTVL, 10)
|
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPINTVL, 10)
|
||||||
writer_sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPCNT, 4)
|
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPCNT, 4)
|
||||||
#log.debug("New connection from {}".format(sock.getpeername()))
|
#log.debug("New connection from {}".format(sock.getpeername()))
|
||||||
|
|
||||||
# Keep track of connected clients
|
# Keep track of connected clients
|
||||||
|
Loading…
Reference in New Issue
Block a user