Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/experimental/worker/remote_execution_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,13 @@ def test_grpc_sync_submit_survives_repeated_calls(self):
finally:
asyncio.run(handle.close()) # tears down the persistent submit loop

def test_grpc_options_tolerate_client_keepalive_pings(self):
options = dict(remote_lib._grpc_options())
self.assertEqual(
options["grpc.http2.min_recv_ping_interval_without_data_ms"], 10000
)
self.assertEqual(options["grpc.http2.max_ping_strikes"], 0)

def test_grpc_sync_start_serving_actually_serves(self):
port = portpicker.pick_unused_port()
server = remote_lib.GrpcRemoteExecutionServer(
Expand Down
2 changes: 2 additions & 0 deletions tunix/experimental/worker/remote_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ def _grpc_options() -> List[Tuple[str, int]]:
("grpc.keepalive_time_ms", 20000),
("grpc.keepalive_timeout_ms", 10000),
("grpc.keepalive_permit_without_calls", 1),
("grpc.http2.min_recv_ping_interval_without_data_ms", 10000),
("grpc.http2.max_ping_strikes", 0),
]


Expand Down
Loading