From a4de5afa9ebbfb39b0a1a0d682832a982211bf8a Mon Sep 17 00:00:00 2001 From: geneaky Date: Tue, 10 Oct 2023 22:46:08 +0900 Subject: [PATCH] config: set sockjs thread pool size --- .../bookchat/config/websocket/MessageBrokerSecurityConfig.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/toy/bookchat/bookchat/config/websocket/MessageBrokerSecurityConfig.java b/src/main/java/toy/bookchat/bookchat/config/websocket/MessageBrokerSecurityConfig.java index 67cafe26..488a3c51 100644 --- a/src/main/java/toy/bookchat/bookchat/config/websocket/MessageBrokerSecurityConfig.java +++ b/src/main/java/toy/bookchat/bookchat/config/websocket/MessageBrokerSecurityConfig.java @@ -41,6 +41,8 @@ public void configureWebSocketTransport(WebSocketTransportRegistration registrat @Override protected void customizeClientInboundChannel(ChannelRegistration registration) { registration.interceptors(webSocketTokenValidationInterceptor); + registration.taskExecutor().corePoolSize(10); + registration.taskExecutor().maxPoolSize(10); } @Override