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

Remove dependency on Data Recvd signals in cleanup #582

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

martinthomson
Copy link
Member

@martinthomson martinthomson commented Jan 23, 2024

This is a simplification, which will cause applications to see errors more often, but I think that it is a good one.

Closes #581.


Preview | Diff

This is a simplification, which will cause applications to see errors
more often, but I think that it is a good one.

Closes w3c#581.
1. [=Queue a network task=] with |transport| to run these steps:
1. If |transport|.{{[[State]]}} is `"closed"` or `"failed"`, abort these steps.
1. Let |error| be a newly [=DOMException/created=] {{WebTransportError}} whose
{{WebTransportErrorOptions/source}} is `"session"`.
1. If |cleanly| is false, then [=cleanup=] |transport| with |error|, and abort these steps.
Copy link
Member

@jan-ivar jan-ivar Jan 24, 2024

Choose a reason for hiding this comment

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

This is a simplification, which will cause applications to see errors more often, but I think that it is a good one.

This line removes erroring (the call to cleanup without closeInfo, unlike below), so won't applications see errors less often?

Copy link
Member Author

Choose a reason for hiding this comment

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

The net effect is that cleanup is invoked with closeInfo always. So I figured they would see that more often, as opposed to just when the local side of the transport thought that it had no outstanding work at the time.

@jan-ivar jan-ivar merged commit ee82272 into w3c:main Jan 31, 2024
2 checks passed
github-actions bot added a commit that referenced this pull request Jan 31, 2024
SHA: ee82272
Reason: push, by jan-ivar

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

Remove dependency on "Data Recvd" state
2 participants