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

Add TCP_FASTOPEN_CONNECT epoll option #7348

Closed
wants to merge 1 commit into from
Closed

Add TCP_FASTOPEN_CONNECT epoll option #7348

wants to merge 1 commit into from

Conversation

rraptorr
Copy link
Contributor

@rraptorr rraptorr commented Oct 27, 2017

Motivation:

Linux kernel 4.11 introduced a new socket option,
TCP_FASTOPEN_CONNECT, that greatly simplifies making TCP Fast Open
connections on client side. Usually simply setting the flag before
connect() call is enough, no more changes are required.

Details can be found in kernel commit:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=19f6d3f3

Modifications:

TCP_FASTOPEN_CONNECT socket option was added to EpollChannelOption
class.

Result:

Netty clients can easily make TCP Fast Open connections. Simply
calling option(EpollChannelOption.TCP_FASTOPEN_CONNECT, true) in
client bootstrap is enough (given recent enough kernel).

Motivation:

Linux kernel 4.11 introduced a new socket option,
TCP_FASTOPEN_CONNECT, that greatly simplifies making TCP Fast Open
connections on client side. Usually simply setting the flag before
connect() call is enough, no more changes are required.

Details can be found in kernel commit:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=19f6d3f3

Modifications:

TCP_FASTOPEN_CONNECT socket option was added to EpollChannelOption
class.

Result:

Netty clients can easily make TCP Fast Open connections. Simply
calling option(EpollChannelOption.TCP_FASTOPEN_CONNECT, true) in
client bootstrap is enough (given recent enough kernel).
@normanmaurer
Copy link
Member

@rraptorr can you please sign our ICLA:

https://netty.io/s/icla

@rraptorr
Copy link
Contributor Author

I believe I've already signed an hour or two ago. Should I submit that form again?

@normanmaurer
Copy link
Member

@rraptorr ah sorry my bad ... all fine :)

@normanmaurer normanmaurer self-assigned this Oct 29, 2017
@normanmaurer normanmaurer added this to the 4.1.17.Final milestone Oct 29, 2017
@normanmaurer
Copy link
Member

Cherry-picked into 4.1 (cdb2a27).

@rraptorr thanks!

@rraptorr rraptorr deleted the tcp_fastopen_connect branch October 29, 2017 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants