Mooncake/mooncake-transfer-engine/tests
Jiangtian Feng 9153043b86
[TE] Harden TCP transport: validate remote addresses, fix idle cleanup, add TCP_NODELAY (#2314)
* [TE] Harden TCP transport: validate remote addresses, fix idle cleanup, add TCP_NODELAY

Fixes #2313

1. Security: ServerSession now validates remote-supplied memory addresses
   against registered local buffers before use, preventing arbitrary
   memory read/write from malicious peers.

2. Performance: Set TCP_NODELAY on all server-accept and client-connect
   paths to eliminate Nagle-induced latency on small control messages.

3. Correctness: Call io_context.restart() after exception in worker loop
   to prevent busy-spin when io_context enters stopped state.

4. Correctness: Fix cleanupIdleConnections to scan the full deque instead
   of only the back, so idle connections anywhere in the pool get cleaned.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* [TE] Fix clang-format violations in TCP transport

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-08 10:29:09 +08:00
..
fault-tolerant [Test] add fault tolerant CI (#418) 2025-06-04 00:43:12 +08:00
CMakeLists.txt [TE] Harden TCP transport: validate remote addresses, fix idle cleanup, add TCP_NODELAY (#2314) 2026-06-08 10:29:09 +08:00
ascend_direct_transport_test.cpp refactor ascend direct transport (#1720) 2026-03-24 21:51:58 +08:00
common_test.cpp [TE][Store] Fix IPv6 address parsing in connection endpoints (#2184) 2026-06-01 15:27:08 +08:00
config_test.cpp [TE] fix: improve auto gid selection and retry (#2269) 2026-06-03 20:52:24 +08:00
cxl_transport_test.cpp code format & enable code format checking in ci (#677) 2025-08-02 15:50:25 +08:00
efa_c_api_test.cpp [TE] PTE-aware auto-split large MR registration for EFA transport (#1912) 2026-04-20 15:04:49 +08:00
efa_gpu_loopback_test.cpp [TE] fix(efa): short-circuit same-process GPU loopback to avoid libfabric SHM segfault (#2298) 2026-06-04 11:17:17 +08:00
efa_single_nic_large_mr_test.cpp [TE] PTE-aware auto-split large MR registration for EFA transport (#1912) 2026-04-20 15:04:49 +08:00
efa_transfer_test.cpp [TE] PTE-aware auto-split large MR registration for EFA transport (#1912) 2026-04-20 15:04:49 +08:00
efa_transport_test.cpp [TE] EFA SRD shared-endpoint refactor: drop per-peer fid_ep model (#1944) 2026-04-23 16:52:27 +08:00
endpoint_store_integration_test.cpp [TENT] Add rule-based transport and device selection (#2079) 2026-05-27 10:41:57 +08:00
endpoint_store_test.cpp [transfer_engine] fix: drain endpoint waiting list via periodic reclaim (#1952) 2026-04-27 10:32:34 +08:00
memory_location_test.cpp [TransferEngine] Speedup RDMA Register for Large Size Memory (#875) 2025-09-28 12:31:27 +08:00
mp_transport_test.cpp [TE] Add Multi-Protocol Support for DRAM-CXL-SSD tiered storage (#1832) 2026-04-09 10:36:14 +08:00
nvlink_transport_test.cpp [TE]: Add HIP transport for AMD GPUs support (#1208) 2025-12-16 19:27:47 +08:00
nvmeof_transport_test.cpp code format & enable code format checking in ci (#677) 2025-08-02 15:50:25 +08:00
rdma_context_reprobe_test.cpp [TE] fix: improve auto gid selection and retry (#2269) 2026-06-03 20:52:24 +08:00
rdma_endpoint_reestablish_test.cpp [TE] fix: improve auto gid selection and retry (#2269) 2026-06-03 20:52:24 +08:00
rdma_gid_probe_test.cpp [TE] fix: improve auto gid selection and retry (#2269) 2026-06-03 20:52:24 +08:00
rdma_loopback_test.cpp code format & enable code format checking in ci (#677) 2025-08-02 15:50:25 +08:00
rdma_transport_test.cpp [Build] Fix compile warnings across multiple components (#2193) 2026-05-26 12:28:53 +08:00
rdma_transport_test2.cpp [TE] Enabling UB Transport on the Kunpeng SuperNode Phase 2 (#1855) 2026-04-15 00:15:34 +08:00
rpc_communicator_test.py [TE][1/N] add RPC based data transfer (#1104) 2025-12-09 22:19:26 +08:00
tcp_address_validation_test.cpp [TE] Harden TCP transport: validate remote addresses, fix idle cleanup, add TCP_NODELAY (#2314) 2026-06-08 10:29:09 +08:00
tcp_transport_test.cpp [] feat: add Hygon DCU/DTK and Iluvatar CoreX platform support (#2118) 2026-05-18 10:26:56 +08:00
topology_test.cpp [Feature] support auto-detect topo for both GPUs and CPUs (#244) 2025-04-16 16:14:30 +08:00
transfer_metadata_test.cpp [TransferEngine] implement closeLocalSegment by segment name (#286) 2025-04-25 17:35:16 +08:00
transport_uint_test.cpp Suppress gtest type cast compile warning and fix some trivial bugs (#115) 2025-02-23 13:29:34 +08:00
ub_transport_test.cpp [TE] Enabling UB Transport on the Kunpeng SuperNode Phase 2 (#1855) 2026-04-15 00:15:34 +08:00
ubshmem_transport_test.cpp [TE] Ubshmem transport support ipc memory and build allocator when set USE_UBSHMEM=ON (#1519) 2026-02-14 19:30:06 +08:00