Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[release/9.0-staging] fix TCP FastOpen compilation #111142

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

Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jan 7, 2025

Backport of #110561 to release/9.0-staging

Fixes #110560

/cc @wfurt

Customer Impact

Requested by Oracle for ODP.NET. TCP FastOpen does not work on some Linux distros, causing functionality problem in their routing environments.

TCP FastOpen is a new feature in 9.0 and it does not work on all supported platforms.
The problem is caused by inconsistency of used kernel headers .NET builds against - some Docker images have old ones, causing the problem.

Regression

Not a regression. New 9.0 feature does not work on all platforms.

Testing

Tested on manual repro case.
There is no good way to automate tests of the functionality, because the negotiation depends on Kernel TCP cookie cache as well as there is no good way how to determine on receiving side if the data were sent with SYN packet or later.

Risk

Small. this is build problem and it gets glibc binaries on par with musl.

@wfurt wfurt changed the title [release/9.0-staging] fix FastOpen compilation [release/9.0-staging] fix TCP FastOpen compilation Jan 7, 2025
Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

@wfurt wfurt requested a review from a team January 7, 2025 03:49
@wfurt wfurt self-assigned this Jan 7, 2025
@wfurt wfurt added this to the 9.0.x milestone Jan 7, 2025
#if defined(__linux__) && !defined(TCP_FASTOPEN_CONNECT)
// fixup if compiled against old Kernel headers.
// Can be removed once we have at least 4.11
#define TCP_FASTOPEN_CONNECT 30
Copy link
Member

Choose a reason for hiding this comment

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

We're relying on getsockopt below failing when this is defined but not understood?

Copy link
Member

Choose a reason for hiding this comment

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

yes. If the call fails e.g. not supported by given Kernel we would fall-back to traditional connect and data would be sent after handshake.

@karelz
Copy link
Member

karelz commented Jan 7, 2025

Impacts new 9.0 feature functionality for important customer, we should backport it.

@karelz karelz added the Servicing-consider Issue for next servicing release review label Jan 7, 2025
@carlossanlop
Copy link
Member

@wfurt @karelz friendly reminder that today's code complete for the Feb 2025 Release. Please merge this change by 4pm PT if you'd like it included in that release version. Otherwise, it will have to wait until next month.

@karelz
Copy link
Member

karelz commented Jan 13, 2025

@carlossanlop we are waiting for shiproom approval.

@karelz
Copy link
Member

karelz commented Jan 14, 2025

Approved by Tactics (@SteveMCarroll) via email on 1/14. Marking as Servicing-approved.

I fear we missed the Feb release cutoff, so it will most likely be part of Mar release.

@karelz karelz added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Jan 14, 2025
@MihaZupan
Copy link
Member

/ba-g wasm failure is #103347

@MihaZupan MihaZupan merged commit 01ad3ef into release/9.0-staging Jan 14, 2025
108 of 119 checks passed
@jkotas jkotas deleted the backport/pr-110561-to-release/9.0-staging branch January 16, 2025 01:48
@github-actions github-actions bot locked and limited conversation to collaborators Feb 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net.Sockets Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants