mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-28 23:56:36 +08:00
修复bug
This commit is contained in:
@@ -160,8 +160,8 @@ func (w *WebSocketReporter) connect() error {
|
||||
w.conn = conn
|
||||
w.connected = true
|
||||
|
||||
// 设置最大消息大小为 16MB (默认是 1024 * 1024)
|
||||
w.conn.SetReadLimit(100 * 1024 * 1024)
|
||||
// 设置最大消息大小为 10MB (默认是 1024 * 1024)
|
||||
w.conn.SetReadLimit(10 * 1024 * 1024)
|
||||
|
||||
// 设置关闭处理器来检测连接状态
|
||||
w.conn.SetCloseHandler(func(code int, text string) error {
|
||||
|
||||
@@ -28,8 +28,8 @@ public class WebSocketConfig implements WebSocketConfigurer {
|
||||
return new ServletContextInitializer() {
|
||||
@Override
|
||||
public void onStartup(ServletContext servletContext) throws ServletException {
|
||||
servletContext.setInitParameter("org.apache.tomcat.websocket.textBufferSize", String.valueOf(100 * 1024 * 1024));
|
||||
servletContext.setInitParameter("org.apache.tomcat.websocket.binaryBufferSize", String.valueOf(100 * 1024 * 1024));
|
||||
servletContext.setInitParameter("org.apache.tomcat.websocket.textBufferSize", String.valueOf(10 * 1024 * 1024));
|
||||
servletContext.setInitParameter("org.apache.tomcat.websocket.binaryBufferSize", String.valueOf(10 * 1024 * 1024));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ server:
|
||||
uri-encoding: UTF-8
|
||||
max-thread: 800
|
||||
max-connections: 2000
|
||||
max-swallow-size: 100MB
|
||||
max-swallow-size: 10MB
|
||||
shutdown: graceful
|
||||
|
||||
mybatis-plus:
|
||||
|
||||
Reference in New Issue
Block a user