Skip to content

#213 Support spring cloud http3 #220

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zinu-x
Copy link
Collaborator

@zinu-x zinu-x commented Feb 23, 2025

add SpringNettyWebServerDefinition
add SpringCloudHttp3Interceptor
add Maven Dependency reactor-netty-http

break;
}
}
} catch (Exception e) {

Choose a reason for hiding this comment

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

直接吞掉了所有的异常,应该细化为小的异常,从具体到公共。
反射获取字段未做类型和存在性校验,易导致运行时错误。
publisher.offer 没有判断 publisher 是否为 null。

@Inject(Publisher.SYSTEM)
private Publisher<AgentEvent> publisher;

public SpringNettyWebServerDefinition() {

Choose a reason for hiding this comment

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

publisher 注入未做空值校验,可能导致 NPE。
只拦截了 NettyWebServer 的 start 方法,未考虑其他生命周期方法,可能遗漏部分启动场景。

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.

3 participants