Skip to content

How to configure buffer size? #2

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;
      }
}

Activity

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

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