Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPTCP: implementation of mptcp #1

Closed
wants to merge 10 commits into from
Closed

MPTCP: implementation of mptcp #1

wants to merge 10 commits into from

Conversation

mux99
Copy link
Owner

@mux99 mux99 commented Mar 15, 2024

This PR is internal, and aims to implement MPTCP (defined in RFC8684) into the nginx socket creation process.
The current approach is to add an option to the listen directive (namely mptcp) to enable and disable the protocol.

It would be interesting to have it set by the httpor server blocks but I don't currently see a good way of doing so.

In this initial commit MPTCP is disabled by default simply because it is easy to implement, but it is preferable to have is on by default and give the option to user to explicitly disable it.

this is a test implementatation of mptcp fot the http context of the nginx server
auto/unix Outdated Show resolved Hide resolved
src/core/ngx_connection.c Show resolved Hide resolved
@@ -487,8 +488,12 @@ ngx_open_listening_sockets(ngx_cycle_t *cycle)
continue;
}

#if (NGX_HAVE_MPTCP)
s = ngx_socket(ls[i].sockaddr->sa_family, ls[i].type,
ls[i].protocol);
Copy link

Choose a reason for hiding this comment

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

alignment not ok

Copy link
Owner Author

Choose a reason for hiding this comment

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

is it ok now? not quite sure

src/core/ngx_connection.c Outdated Show resolved Hide resolved
src/core/ngx_connection.c Outdated Show resolved Hide resolved
auto/unix Outdated Show resolved Hide resolved
src/core/ngx_connection.c Outdated Show resolved Hide resolved
src/core/ngx_connection.c Outdated Show resolved Hide resolved
src/core/ngx_connection.c Outdated Show resolved Hide resolved
this is a test implementatation of mptcp fot the http context of the nginx server

fix: replace socket call swap w/ fallback

fix: alignment, hopefully

fix: removed compilator mptcp test

add: an option mptcp for streams

fix: spacing

fix: removed useless pre-processors

fix: value already zero
@mux99 mux99 closed this Mar 19, 2024
@mux99 mux99 deleted the mptcp branch March 19, 2024 09:10
@mux99
Copy link
Owner Author

mux99 commented Mar 19, 2024

my bad, branch is back

@matttbe
Copy link

matttbe commented Mar 19, 2024

my bad, branch is back

I guess you need to re-open the PR, or create a new one.

@mux99
Copy link
Owner Author

mux99 commented Mar 19, 2024

still not proficient with git. i created a new PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants