Skip to content

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