You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The native resolution, protocol, and resolution-report enumerators return a Boolean indicating whether enumeration should continue. Return byte 1 from their unmanaged trampolines and update the matching function pointers so the existing Action-based managed API consistently continues enumeration.
Extract the binding corrections and related coverage from #26704 without its GC.KeepAlive changes. Add a dedicated TCP protocol-enumeration test with a bounded establishment-report wait and explicit cleanup, preserving the shared UDP fixture. Exercise resolution-report enumeration on devices and require at least one report.
…alues.
The native resolution, protocol, and resolution-report enumerators return a Boolean indicating whether enumeration should continue. Return byte 1 from their unmanaged trampolines and update the matching function pointers so the existing Action-based managed API consistently continues enumeration.
Extract the binding corrections and related coverage from #26704 without its GC.KeepAlive changes. Add a dedicated TCP protocol-enumeration test with a bounded establishment-report wait and explicit cleanup, preserving the shared UDP fixture. Exercise resolution-report enumeration on devices and require at least one report.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Return false from all three enumeration trampolines when their managed target is missing, matching other Network enumerators. Only report successful continuation after invoking the handler.
Exercise protocol enumeration on a TLS-over-TCP connection and require both TCP and TLS definitions, rather than accepting one callback. Bound connection and report waits, cancel the connection in cleanup, and dispose reports even if their callback arrives after a timeout. Keep the shared UDP fixture and resolution-report smoke coverage unchanged.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Document the five callback arguments, synchronous invocation, null-handler exception, and callback-scoped endpoint lifetime for EnumerateResolutions, as requested in review.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…o callers
The establishment-report callback receives a borrowed report, but its wrapper claimed ownership without retaining it. Disposing the report in the new protocol test freed an object still used by Network during connection cancellation, causing a native crash after the test passed. Retain the callback report through NativeObject so its managed lifetime is independent of the connection.
Remove the documentation known-failure entry for EnumerateResolutions, which is now documented and caused the Cecil CI job to fail.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
🤖 ❌ Binding definition — Apple's nw_establishment_report_access_block_t marks report nullable and documents that it is NULL until the connection is ready. This path still creates and passes a non-null NWEstablishmentReport with a zero handle, so callers receive an unusable wrapper instead of null. Check for IntPtr.Zero here and update the target/public callback contract to Action<NWEstablishmentReport?>; add coverage for requesting the report before readiness.
…n callback return values. (#27493)
The native resolution, protocol, and resolution-report enumerators return a Boolean indicating whether enumeration should continue. Return byte 1 from their unmanaged trampolines and update the matching function pointers so the existing Action-based managed API consistently continues enumeration.
Extract the binding corrections and related coverage from #26704 without its GC.KeepAlive changes. Add a dedicated TCP protocol-enumeration test with a bounded establishment-report wait and explicit cleanup, preserving the shared UDP fixture. Exercise resolution-report enumeration on devices and require at least one report.
Applied without conflicts or dependencies. No app-size expectations changed or needed regeneration.
Backport of #26798.
🤖 Pull request created by Copilot
---------
Co-authored-by: Rolf Bjarne Kvinge <rokvin@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The native resolution, protocol, and resolution-report enumerators return a Boolean indicating whether enumeration should continue. Return byte 1 from their unmanaged trampolines and update the matching function pointers so the existing Action-based managed API consistently continues enumeration.
Extract the binding corrections and related coverage from #26704 without its GC.KeepAlive changes. Add a dedicated TCP protocol-enumeration test with a bounded establishment-report wait and explicit cleanup, preserving the shared UDP fixture. Exercise resolution-report enumeration on devices and require at least one report.
🤖 Pull request created by Copilot