提交 87b2f868 编写于 作者: 浅梦2013's avatar 浅梦2013

websocket ssl 配置

上级 fa88c96a
...@@ -278,6 +278,7 @@ public class MqttWebServer { ...@@ -278,6 +278,7 @@ public class MqttWebServer {
this.httpConfig.setHttpRequestHandler(this.httpRequestHandler); this.httpConfig.setHttpRequestHandler(this.httpRequestHandler);
this.mqttWebServerAioHandler = new MqttWebServerAioHandler(httpConfig, this.httpRequestHandler, wsMsgHandler); this.mqttWebServerAioHandler = new MqttWebServerAioHandler(httpConfig, this.httpRequestHandler, wsMsgHandler);
this.serverTioConfig = new ServerTioConfig(this.httpConfig.getName(), mqttWebServerAioHandler, this.serverAioListener, tioExecutor, groupExecutor); this.serverTioConfig = new ServerTioConfig(this.httpConfig.getName(), mqttWebServerAioHandler, this.serverAioListener, tioExecutor, groupExecutor);
this.serverTioConfig.setSslConfig(serverCreator.getSslConfig());
this.serverTioConfig.setHeartbeatTimeout(0); this.serverTioConfig.setHeartbeatTimeout(0);
this.serverTioConfig.setReadBufferSize(1024 * 30); this.serverTioConfig.setReadBufferSize(1024 * 30);
this.serverTioConfig.setTioUuid(new HttpUuid()); this.serverTioConfig.setTioUuid(new HttpUuid());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册