Skip to content

Conversation

oxsean
Copy link
Contributor

@oxsean oxsean commented Dec 1, 2024

What is the purpose of the change?

  • Heartbeat support under http3
  • Fix thread blocking issue when channel reconnection under http3.

Checklist

  • Make sure there is a GitHub_issue field for the change.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
  • Make sure gitHub actions can pass. Why the workflow is failing and how to fix it?

@@ -80,11 +110,38 @@ public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise)
return;
}
ctx.write(new DefaultHttp3DataFrame(frame.content()), promise);
} else if (msg instanceof Http2PingFrame) {
sendPing((QuicChannel) ctx.channel());
Copy link
Contributor

Choose a reason for hiding this comment

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

I think implementing a pingpong mechanism for http3 would result in clearer code than reusing http2.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Considering using the control stream for heartbeat and graceful shutdown, but there is no documentation for this, so had to try it myself and used a simple solution for this version.

Copy link
Contributor

Choose a reason for hiding this comment

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

Mark to be resolved later.

Copy link
Contributor

@finefuture finefuture left a comment

Choose a reason for hiding this comment

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

LGTM

@AlbumenJ AlbumenJ merged commit 9633296 into apache:3.3 Dec 6, 2024
18 checks passed
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