Agent: Pass keep_tunnel_open timeout as new_client_timeout

This commit is contained in:
Mike Salvatore 2022-09-12 10:24:26 -04:00
parent 67893b7825
commit a01785838d
1 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,10 @@ class TCPRelay(Thread, InterruptableThreadMixin):
dest_port: int,
client_disconnect_timeout: float,
):
self._user_handler = RelayUserHandler(client_disconnect_timeout=client_disconnect_timeout)
self._user_handler = RelayUserHandler(
new_client_timeout=client_disconnect_timeout,
client_disconnect_timeout=client_disconnect_timeout,
)
self._pipe_spawner = TCPPipeSpawner(dest_addr, dest_port)
relay_filter = RelayConnectionHandler(self._pipe_spawner, self._user_handler)
self._connection_handler = TCPConnectionHandler(