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

[WebTransport server] Make server-initiated bidirectional streams work #30795

Merged
merged 2 commits into from Sep 17, 2021

Conversation

bashi
Copy link
Member

@bashi bashi commented Sep 15, 2021

No description provided.

@bashi bashi marked this pull request as ready for review September 15, 2021 07:38
@bashi
Copy link
Member Author

bashi commented Sep 15, 2021

@nidhijaju Could you check this works around the problem you got? Also could you make sure this doesn't break other tests?

@yutakahirano PTAL after this is confirmed to be working.

@nidhijaju
Copy link
Member

Yes, I've checked that this workaround works well to temporarily solve the problem I had found. I also tested it with all the other existing tests we had, and it didn't break any of them. :)

@@ -187,6 +187,13 @@ def create_bidirectional_stream(self) -> int:
"""
stream_id = self._http.create_webtransport_stream(
session_id=self.session_id, is_unidirectional=False)
# TODO(bashi): Remove this workaround when aioquic supports receiving
Copy link
Contributor

Choose a reason for hiding this comment

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

This will be broken when the bug is fixed on aioquic. How about guarding the block with

if stream.frame_type is None:

or

if stream.frame_type is None and stream.session_id is None:

?

Copy link
Member Author

Choose a reason for hiding this comment

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

I slightly prefer to assert because these asserts force us to remove these workarounds when we update aioquic.

Copy link
Contributor

@yutakahirano yutakahirano left a comment

Choose a reason for hiding this comment

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

OK, then LGTM!

@bashi
Copy link
Member Author

bashi commented Sep 16, 2021

Thank you @nidhijaju for checking and @yutakahirano for review! I'm going to merge this.

@bashi bashi enabled auto-merge (squash) September 16, 2021 10:32
@bashi bashi closed this Sep 16, 2021
auto-merge was automatically disabled September 16, 2021 23:14

Pull request was closed

@bashi bashi reopened this Sep 16, 2021
@bashi
Copy link
Member Author

bashi commented Sep 17, 2021

The failure seems unrelated to this change. I'm going to merge this.

@bashi bashi merged commit c15c7aa into web-platform-tests:master Sep 17, 2021
@bashi bashi deleted the webtransport-server-workaround branch September 17, 2021 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants