GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Spdy: Add UnknownFrame parsing support for SpdyFrameCodec. by normanmaurer · Pull Request #14561 · netty/netty

Conversation

@normanmaurer

@normanmaurer normanmaurer commented Dec 12, 2024

Copy link
Copy Markdown
Member

Motivation:
To make our codec more flexible we should add support for unknown frames in SPDY.

Modifications:

  • Add SpdyFrameDecoderExtendedDelegate that supports unknown frames
  • Add new constructor and protected method to SpdyFrameCodec that makes it easy to support it

Result:

More flexible SPDY implementation.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

He-Pin reacted with thumbs up emoji He-Pin reacted with heart emoji
All reactions
  • 👍 1 reaction
  • ❤️ 1 reaction
@He-Pin @normanmaurer
Spdy: Add UnknownFrame parsing support for SpdyFrameCodec.
54067c6
Motivation:
To make our codec more flexible we should add support for unknown frames in SPDY.

Modifications:

- Add SpdyFrameDecoderExtendedDelegate that supports unknown frames
- Add new constructor and protected method to SpdyFrameCodec that makes it easy to support it

Result:

More flexible SPDY implementation.

Co-authored-by: Norman Maurer <[email protected]>
@normanmaurer

normanmaurer commented Dec 12, 2024

Copy link
Copy Markdown
Member Author

/cc @He-Pin PTAL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer normanmaurer added this to the 4.2.0.Final milestone Dec 12, 2024
normanmaurer
normanmaurer commented Dec 12, 2024
View reviewed changes
Comment thread codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameCodec.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

He-Pin
He-Pin reviewed Dec 12, 2024
View reviewed changes
Comment thread codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameCodec.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

He-Pin
He-Pin reviewed Dec 12, 2024
View reviewed changes
Comment thread codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameDecoderExtendedDelegate.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

normanmaurer added 4 commits December 12, 2024 14:28
@normanmaurer
cleanup
e5fdb59
@normanmaurer
Fix compile error
48e7065
@normanmaurer
Make interface package-private
cbdac2e
@normanmaurer
Hide new interface
a910a7a
@normanmaurer

normanmaurer commented Dec 12, 2024

Copy link
Copy Markdown
Member Author

@He-Pin I think this is ready to go... PTAL

He-Pin reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer
Remove code
83f6fcc
He-Pin
He-Pin reviewed Dec 12, 2024
View reviewed changes
Comment thread codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameCodec.java Outdated
public void readUnknownFrame(int frameType, byte flags, ByteBuf payload) {
read = true;
SpdyUnknownFrame spdyUnknownFrame = new DefaultSpdyUnknownFrame(frameType, flags, payload);
ctx.fireChannelRead(spdyUnknownFrame);

@He-Pin He-Pin Dec 12, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

how about adding a protected method: createSpdyUnknownFrame, then I can override it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@normanmaurer normanmaurer Dec 12, 2024

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Sure I can do this if you need it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

He-Pin reacted with thumbs up emoji He-Pin reacted with heart emoji
All reactions
  • 👍 1 reaction
  • ❤️ 1 reaction
He-Pin
He-Pin reviewed Dec 12, 2024
View reviewed changes
Comment thread codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameCodec.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

He-Pin
He-Pin reviewed Dec 12, 2024
View reviewed changes
Comment thread codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameCodec.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer
feedback
4a29b45
@normanmaurer

normanmaurer commented Dec 12, 2024

Copy link
Copy Markdown
Member Author

@He-Pin PTAL again

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

He-Pin
He-Pin reviewed Dec 12, 2024
View reviewed changes
Comment thread codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameCodec.java
}

protected SpdyUnknownFrame newSpdyUnknownFrame(int frameType, byte flags, ByteBuf payload) {
return new DefaultSpdyUnknownFrame(frameType, flags, payload);

@He-Pin He-Pin Dec 12, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks, but I think this can better be a SpdyFrame , which only is a maker interface, otherwise users will have to implement the ByteBufHolder, and In our implementation, CustFrame extends SpdyFrame.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@He-Pin

He-Pin commented Dec 12, 2024

Copy link
Copy Markdown
Contributor

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer
Fix leak
9a50f2d
@normanmaurer normanmaurer mentioned this pull request Dec 12, 2024
chore: Add UnknownFrame parsing support for SpdyFrameDecoder. #14464
Closed
@He-Pin

He-Pin commented Dec 13, 2024

Copy link
Copy Markdown
Contributor

The milestone should be 4.1.116.Final now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

He-Pin
He-Pin reviewed Dec 13, 2024
View reviewed changes
Comment thread codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameDecoder.java
return false;
}
if (delegate instanceof SpdyFrameDecoderExtendedDelegate) {
ByteBuf data = buffer.alloc().buffer(length);

@He-Pin He-Pin Dec 13, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

what about using buffer.readSlice here?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@normanmaurer normanmaurer Dec 13, 2024

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Yes we could use readRetainedSlice(...). But let's do this in a followup as its true for other methods as well.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

He-Pin reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@normanmaurer
normanmaurer merged commit dd97c68 into 4.1 Dec 13, 2024
@normanmaurer
normanmaurer deleted the spdy branch December 13, 2024 09:03
@He-Pin

He-Pin commented Dec 13, 2024

Copy link
Copy Markdown
Contributor

Thanks

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

normanmaurer added a commit that referenced this pull request Dec 13, 2024
@normanmaurer @He-Pin
Spdy: Add UnknownFrame parsing support for SpdyFrameCodec. (#14561)
84ac6ab
Motivation:
To make our codec more flexible we should add support for unknown frames
in SPDY.

Modifications:

- Add default method to SpdyFrameDecoderDelegate to support unknown frames
- Add new constructor and protected method to SpdyFrameCodec that makes
it easy to support it

Result:

More flexible SPDY implementation.

---------

Co-authored-by: 虎鸣 <[email protected]>
normanmaurer added a commit that referenced this pull request Dec 13, 2024
@normanmaurer @He-Pin
Spdy: Add UnknownFrame parsing support for SpdyFrameCodec. (#14561) (#…
057e155
…14569)

Motivation:
To make our codec more flexible we should add support for unknown frames
in SPDY.

Modifications:

- Add default method to SpdyFrameDecoderDelegate to support unknown
frames
- Add new constructor and protected method to SpdyFrameCodec that makes
it easy to support it

Result:

More flexible SPDY implementation.

Co-authored-by: 虎鸣 <[email protected]>
@normanmaurer normanmaurer modified the milestones: 4.2.0.Final, 4.2.0.RC2 Jan 14, 2025
This was referenced Sep 14, 2026
Http2: Reserve promised stream for PUSH_PROMISE after local RST_STREAM #17471
Closed
cache failure 1233e4a5 #17565
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@He-Pin He-Pin He-Pin left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

4.2.0.RC2

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@normanmaurer @He-Pin
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.