Skip to content

RSocket configuration property for port not working if transport is websocket #18188

@mmihael

Description

@mmihael

Spring boot version: 2.2.0.BUILD-SNAPSHOT

Example configuration I'm using:

spring:
  rsocket:
    server:
      transport: websocket
      port: 7000

Netty RSocket always starts on a random port when I use this configuration.
Works fine for tcp transport.

Checking NettyRSocketServerFactory.createTransport and configuration prop for the port is never passed to HTTP server configuration there if resourceFactory != null.
This is at least strange/confusing because the existence of port property is condition for this auto-config to trigger.

Metadata

Metadata

Assignees

Labels

status: supersededAn issue that has been superseded by anothertype: bugA general bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions