在Spring Websockets中,在传输注册和servlet容器上设置缓冲区大小有什么区别?
WebSocketTransportRegistration.setSendBufferSizeLimit
和ServletServerContainerFactoryBean.setMaxTextMessageBufferSize
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxTextMessageBufferSize(websocketBuffer);
public void configureWebSocketTransport(WebSocketTransportRegistration reg) {
reg.setMessageSizeLimit(sessionBuffer);
reg.setSendBufferSizeLimit(sessionBuffer);
}