Skip to content

Accept 4-arg handshake complete function in dist util - #10478

Merged
rickard-green merged 1 commit into
erlang:masterfrom
zzydxm:handshake_complete
Apr 9, 2026
Merged

Accept 4-arg handshake complete function in dist util#10478
rickard-green merged 1 commit into
erlang:masterfrom
zzydxm:handshake_complete

Conversation

@zzydxm

@zzydxm zzydxm commented Dec 15, 2025

Copy link
Copy Markdown
Contributor

We are currently using erldist_filter to add extra security to all our dist connections by not allowing certain dist messages to pass through.

We have a special logic like here for us to enable the filter on dist connection setup https://github.com/WhatsApp/erldist_filter/blob/main/apps/erldist_filter/src/erldist_filter_otp_28_inet_tcp_dist.erl#L1037-L1039

If dist_util can allow a 5-arg handshake_complete function like this PR, we could avoid copying dist_util on every OTP upgrade and would be really great for us. The creation and flags of the connection also seems general enough information that the dist protocol can know.

This replaces #8473 if exposing the entire HSData is too much.

Thanks!

@github-actions

github-actions Bot commented Dec 15, 2025

Copy link
Copy Markdown
Contributor

CT Test Results

    4 files    199 suites   1h 55m 53s ⏱️
3 344 tests 2 874 ✅ 470 💤 0 ❌
4 242 runs  3 695 ✅ 547 💤 0 ❌

Results for commit 7da680b.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@IngelaAndin IngelaAndin added the team:VM Assigned to OTP team VM label Dec 16, 2025
@jhogberg
jhogberg requested a review from rickard-green January 7, 2026 11:08
@rickard-green rickard-green added the testing currently being tested, tag is used by OTP internal CI label Feb 4, 2026
@jhogberg jhogberg removed the testing currently being tested, tag is used by OTP internal CI label Mar 16, 2026
@zzydxm zzydxm changed the title Accept 5-arg handshake complete function in dist util Accept 4-arg handshake complete function in dist util Mar 18, 2026
@zzydxm
zzydxm force-pushed the handshake_complete branch from 7eea393 to 7071cb9 Compare March 23, 2026 15:55
@zzydxm
zzydxm force-pushed the handshake_complete branch from 7071cb9 to 7da680b Compare March 24, 2026 13:37
@rickard-green rickard-green added the testing currently being tested, tag is used by OTP internal CI label Mar 31, 2026
@rickard-green
rickard-green merged commit 895eb45 into erlang:master Apr 9, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants