Skip to content

Conversation

@Frando
Copy link
Member

@Frando Frando commented Nov 5, 2025

@Frando Frando requested a review from rklaehn November 5, 2025 14:36
Copy link
Collaborator

@rklaehn rklaehn left a comment

Choose a reason for hiding this comment

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

Approved since it seems the only way to work with the current iroh api, but we should revisit this soon.

n0-computer/iroh#3611

@rklaehn rklaehn merged commit c769191 into matheus23/irpc-n0-error Nov 5, 2025
@rklaehn rklaehn deleted the Frando/0rtt-api branch November 5, 2025 18:28
github-merge-queue bot pushed a commit to n0-computer/iroh that referenced this pull request Nov 5, 2025
## Description

This allows to get hold of a future that resolves with `ZeroRttStatus`
while doing work with the connection (e.g. opening streams) in parallel,
without having to give up ownership of the `OutgoingZeroRttConnection`.

Used in n0-computer/irpc#81

## Breaking Changes

* `OutgoingZeroRttConnection::handshake_completed()` now takes `&self`
instead of `self`

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist
<!-- Remove any that are not relevant. -->
- [x] Self-review.
- [x] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [x] Tests if relevant.
- [x] All breaking changes documented.
- [ ] List all breaking changes in the above "Breaking Changes" section.
- [ ] Open an issue or PR on any number0 repos that are affected by this
breaking change. Give guidance on how the updates should be handled or
do the actual updates themselves. The major ones are:
    - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc)
    - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip)
    - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs)
    - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe)
    - [ ] [`sendme`](https://github.com/n0-computer/sendme)

---------

Co-authored-by: “ramfox” <“kasey@n0.computer”>
ramfox pushed a commit that referenced this pull request Nov 6, 2025
Based on #81 
With the 0rtt status being accessible from the connection directly, we
can just move this into the `RemoteConnection` abstraction, making
working with 0rtt requests simpler for implementors (see changes to the
0rtt example!).
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