Skip to content

How to configure buffer size? #2

@liyiorg

Description

@liyiorg

Hello,The tomcat websocket limit buffer size 8kb, How to adjust, using the following configuration is invalid.

@Override
    void configureWebSocketTransport(WebSocketTransportRegistration registration) {
        registration.setMessageSizeLimit(64 * 1024);
    }
@Configuration
public class MyServerContainerConfigurer{
      @Bean
      public ServletServerContainerFactoryBean createWebSocketContainer() {
            ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
            container.setMaxTextMessageBufferSize(64*1024);
            container.setMaxBinaryMessageBufferSize(64*1024);
            return container;
      }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions