Skip to content

How to Set the WebSocket Initialization Connection Timeout. connection-init-timeout #1129

@sdack-cloud

Description

@sdack-cloud

After establishing a WebSocket connection, the default timeout during the initialization phase is 60 seconds. I would like to change the timeout value

Testing with Postman ws://localhost:888

rsocket-server

org.springframework.boot:spring-boot-starter-webflux:3.2.1
org.springframework.boot:spring-boot-starter-rsocket:3.2.1
io.rsocket:rsocket-core:1.1.3

spring:
    rsocket:
      server:
        port: 888
        transport: websocket

I want to know how Spring RSocket can configure connection init timeout like GraphQL

spring:
  graphql:
    websocket:
      connection-init-timeout: 10s

Does RSocket support it?

Why is the connection-init-timeout default value 60s?

@bclozel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions