Linux only
This commit is contained in:
parent
f14461ea64
commit
292865f625
1 changed files with 1 additions and 1 deletions
|
@ -565,7 +565,7 @@ class TCPRelayHandler(object):
|
|||
else:
|
||||
remote_sock.setsockopt(socket.SOL_TCP, socket.TCP_NODELAY, 1)
|
||||
remote_sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
|
||||
if platform.system() != 'Windows':
|
||||
if platform.system() in ['Linux']:
|
||||
remote_sock.setsockopt(socket.SOL_TCP, socket.TCP_KEEPIDLE, 120)
|
||||
remote_sock.setsockopt(socket.SOL_TCP, socket.TCP_KEEPINTVL, 20)
|
||||
remote_sock.setsockopt(socket.SOL_TCP, socket.TCP_KEEPCNT, 5)
|
||||
|
|
Loading…
Add table
Reference in a new issue