Skip to content

Different ReactorNettyWebSocketSession call getId() may return the same value #35883

@mailingfeng

Description

@mailingfeng

Bug Reposrts

version: 6.2.14 (also with 6.1.x)

bug description:

In a production environment,SpringWebFlux (Netty) different ReactorNettyWebSocketSession call getId() return the same value, because the following logic: ObjectUtils.getIdentityHexString(delegate)

protected NettyWebSocketSessionSupport(T delegate, HandshakeInfo info, NettyDataBufferFactory factory) {
            super(delegate, ObjectUtils.getIdentityHexString(delegate), info, factory);
}

Expectation

ReactorNettyWebSocketSession id can be globally unique ??
Or
ReactorNettyWebSocketSession id generation strategy, can support custom ??

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions