Skip to content

Add middlebox_comp_mode to global options#2989

Merged
ferd merged 1 commit intoerlang:mainfrom
elbrujohalcon:elbrujohalcon.middlebox_comp_mode
Jan 22, 2026
Merged

Add middlebox_comp_mode to global options#2989
ferd merged 1 commit intoerlang:mainfrom
elbrujohalcon:elbrujohalcon.middlebox_comp_mode

Conversation

@elbrujohalcon
Copy link
Contributor

This PR adds another option (like ssl_verify) to the global rebar.config: middlebox_comp_mode.
This is needed to address issues like #2987.
The option is basically passed down as-is (with the default being true) to httpc:request/5 where it's used as described in the docs. That is…

{middlebox_comp_mode, MiddleBoxMode}

Configures the middlebox compatibility mode for a TLS-1.3 connection.

A significant number of middleboxes misbehave when a TLS-1.3 connection is negotiated. Implementations can increase the chance of making connections through those middleboxes by adapting the TLS-1.3 handshake to resemble that of a TLS-1.2 handshake.

The middlebox compatibility mode is enabled (true) by default.

Copy link
Collaborator

@ferd ferd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense as an extra option; re-running failed MacOS suite to see if it was transient.

@ferd ferd merged commit 567b666 into erlang:main Jan 22, 2026
10 of 11 checks passed
@elbrujohalcon elbrujohalcon deleted the elbrujohalcon.middlebox_comp_mode branch January 23, 2026 05:28
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.

2 participants