Skip to content

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

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 ??

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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