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

Sync with NNG 1.10 stable #1153

Merged
merged 23 commits into from
Feb 18, 2025
Merged

Sync with NNG 1.10 stable #1153

merged 23 commits into from
Feb 18, 2025

Conversation

JaylinYu
Copy link
Member

No description provided.

shikokuchuo and others added 23 commits February 18, 2025 12:22
(cherry picked from commit 9d0b023b39aae37adb6e5cb1a2b926777ffd2023)
(cherry picked from commit 3cfd6ab21bfb8b02fde1e976fc0bf50bf729c8ab)
This bug was already fixed in the main branch.
This does not fully mark them in the headers, to avoid complicating
test suites and such, for now.
We forgot to do this for 1.9.0, which incorrectly claims to be 1.8.0.
It turns out that for now this results in early wakeups, due to another
bug in the aio framework.  But when that bug is fixed, this bug will
lead to hangs when redialing.

(cherry picked from commit 2dfb99506142f2d59bcc0e0fa7db6b19a3c75d43)
These functions were added in the main branch for NNG 2.0, and
we add them here to facilitate converting any code that happened
to use the options (`NNG_OPT_PROTO`, `NNG_OPT_PROTONAME`,
`NNG_OPT_PEER`, `NNG_OPT_PEERNAME`, and `NNG_OPT_RAW`.

Its unlikely that many applications need this, but providing these
as a transition aid may help applications start adopting new APIs now.
These are new functions that replace `NNG_OPT_SUBSCRIBE` and
`NNG_OPT_UNSUBSCRIBE`.  They are provided here as a transition
aid before those options are removed in NNG 2.0.

Signed-off-by: jaylin <[email protected]>
This hopefully addresses a long standing bug with Windows IPC sometimes
hanging on shut down.
This fixes a possible failure condition on teardown.
Actually this test appears to be broken everywhere, and the only
reason it ever worked is that we took > 50 ms to context switch.

(cherry picked from commit 1a4d71cdd4ff80bb79d842c081296c298e7b2295)
fix conflicts by jaylin

These are the 2.0 equivalent versions of nng_send_aio and nng_recv_aio.
The old names are preserved as aliases for the new.  Applications can
start adopting these with this release, even before 2.0 is ready.

Signed-off-by: jaylin <[email protected]>
…_get_url

fix conflicts with nng_dialer_off
This is meant to help applications start adopting new interfaces before converting to NNG 2.0

Signed-off-by: jaylin <[email protected]>
This does not impact the core project, but merely updates tools
used for publishing docs on the website.
@JaylinYu JaylinYu requested a review from a team February 18, 2025 04:44
@JaylinYu JaylinYu merged commit 53cc4a6 into main Feb 18, 2025
11 of 15 checks passed
@JaylinYu JaylinYu deleted the jaylin/dev branch February 18, 2025 05:37
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.

4 participants