Skip to content

feat: add common transport-level handshake for RDMA and UBSHM - #47

Open
zchuango wants to merge 67 commits into
masterfrom
transport-handshake
Open

zchuango wants to merge 67 commits into
masterfrom
transport-handshake

Conversation

@zchuango

Copy link
Copy Markdown

No description provided.

Spicy-cream and others added 28 commits October 15, 2026 19:32
…lity

Resolve UBSHM handshake conflicts using the tested rebased tree. Retain backend-specific format negotiation, remote shared-memory lengths, and upstream IPC V2 tests.
Resolve current master conflicts and preserve UBSHM IPC V2 negotiation
Resolve master conflict and preserve shared memory name safety
…refresh

Resolve modular CMake conflict and preserve handshake protobuf generation
Retain the in-flight I/O delay and release the transaction synchronously when deferred cleanup cannot be scheduled. Unlink before handing cleanup ownership away and detach the closed ring from the transaction pool slot.

Cover timerfd creation failure in active and callback cleanup paths, including shared-memory release and repeated close. Validated 177 handshake/RDMA/UBSHM tests and 83 ASan tests.
Keep transaction slots until both the connection and cleanup callbacks release their references. Pin device-event lookups under the manager lock and route passive and timed-out closes through one cleanup owner.

Preserve UBS mapping metadata during unlink, reject non-positive cleanup delays, and complete the in-flight I/O wait after signal interruptions.

Validate with 182 handshake/RDMA/UBSHM tests, 88 ASan tests, and 10 repeated rounds of the three lifetime regression cases.
Spicy-cream and others added 30 commits November 5, 2026 04:20
Join pollers outside the group mutex and reject initialization while stopping. Make protocol version snapshots atomic, remove repeated socket addressing from handshake I/O, and address the allocation and formatting review comments.
* reject bare LF and CTLs in http chunk extensions

* test valid chunk extension as control before mutating it
* Support RDMA SRQ

* Fix socket reference ownership in RDMA test helpers

* Improve SRQ progress efficiency, receive handling, and failure isolation

* Update RDMA documents
…3755)

* test(butil): add unit test verifying cpu_relax uses isb on ARM64

Signed-off-by: James Lamb <admin@oranged.to>

* perf(butil): use isb instead of yield for cpu_relax on ARM64

Signed-off-by: James Lamb <admin@oranged.to>

---------

Signed-off-by: James Lamb <admin@oranged.to>
…el for Apple Silicon (apache#3764)

* fix(bazel): use @bazel_tools//src/conditions:darwin in test/BUILD.bazel

Signed-off-by: James Lamb <admin@oranged.to>

* fix(bazel): use @platforms//os:macos constraint in //bazel/config:darwin

Signed-off-by: James Lamb <admin@oranged.to>

---------

Signed-off-by: James Lamb <admin@oranged.to>
* Fix ObjectPool block item count race

* Fix object pool cleanup synchronization
* fix: bound InputMessenger non-protocol handlers

* Fix non-protocol handler capacity logging and test setup
* fix: preserve optional value lifetime

* Fix copy and move traits for C++14 optional

* Fix converting optional move semantics

* Fix optional swap noexcept specification
* fix(ubshm): reject truncated shared memory names

* test(ubshm): cover overlong peer names in server handshake

* fix(ubshm): preserve shared memory name logging
…port-protocol-name

# Conflicts:
#	src/brpc/ubshm/ub_endpoint.cpp
#	src/brpc/ubshm/ub_endpoint.h
* Support RDMA for FlatBuffers RPC

* Separate FlatBuffers RDMA tests from the default test suite

* Fix FlatBuffers RDMA allocation fallback and add CI coverage

* Fix RDMA memory deregistration during shutdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants