
Websocket
Websocket开发记录
Lee_01
coder
展开
-
Websocket内存溢出
maxMessageSize设置太大,减少到合适的大小即可原创 2020-08-09 02:13:41 · 3559 阅读 · 0 评论 -
客户端Websocket未正常关闭服务端报异常
异常信息java.io.EOFException at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.fillReadBuffer(NioEndpoint.java:1244) at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1184) at org.apache.tomcat.websocket.s.原创 2020-08-09 01:44:17 · 2314 阅读 · 0 评论 -
SpringBoot整合WebSocket注入XxxService失败
SpringBoot整合WebSocket注入XxxService失败代码:用@Autowired@Slf4j@Servicepublic class XxxService { public void service() { log.info("提供服务"); }}@Autowiredprivate XxxService xxxService;@...原创 2019-12-25 00:30:14 · 2006 阅读 · 1 评论 -
Spring Boot整合WebSocket时运行测试类会报错
Spring Boot整合WebSocket时运行测试类会报错问题import org.junit.jupiter.api.Test;import org.springframework.boot.test.context.SpringBootTest;@SpringBootTestclass DemoApplicationTests { @Test void cont...原创 2019-12-18 20:40:27 · 566 阅读 · 0 评论 -
WebSocket接收前端图片自动断开连接异常
前端一发送图片,WebSocket就自动断开连接原创 2019-12-18 20:21:02 · 2445 阅读 · 2 评论 -
使用websocket传图片报错 exceptionFailed to execute 'toDataURL' on 'HTMLCanvasElement'
使用websocket传图片报错 exception:Failed to execute ‘toDataURL’ on ‘HTMLCanvasElement’Uncaught DOMException: Failed to execute ‘toDataURL’ on ‘HTMLCanvasElement’: Tainted canvases may not be exported原因:...原创 2019-11-27 20:07:39 · 400 阅读 · 0 评论