tomcat 8.xxx ssl使用websocket Failed to close the ServletOutputStream connection cleanly

网友投稿 715 2022-10-31


tomcat 8.xxx ssl使用websocket Failed to close the ServletOutputStream connection cleanly

报错:

2019-09-17 10:30:17.277 default [INFO o.a.t.w.s.WsRemoteEndpointImplServer - Failed to close the ServletOutputStream connection cleanlyjava.io.IOException: 您的主机中的软件中止了一个已建立的连接。 at sun.nio.ch.SocketDispatcher.write0(Native Method) at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51) at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) at sun.nio.ch.IOUtil.write(IOUtil.java:65) at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471) at org.apache.tomcat.util.net.SecureNioChannel.flush(SecureNioChannel.java:144) at org.apache.tomcat.util.net.SecureNioChannel.close(SecureNioChannel.java:524) at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.close(NioEndpoint.java:1218) at org.apache.tomcat.websocket.server.WsRemoteEndpointImplServer.doClose(WsRemoteEndpointImplServer.java:167) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.close(WsRemoteEndpointImplBase.java:710) at org.apache.tomcat.websocket.WsSession.onClose(WsSession.java:518) at org.apache.tomcat.websocket.WsFrameBase.processDataControl(WsFrameBase.java:347) at org.apache.tomcat.websocket.WsFrameBase.processData(WsFrameBase.java:289) at org.apache.tomcat.websocket.WsFrameBase.processInputBuffer(WsFrameBase.java:133) at org.apache.tomcat.websocket.server.WsFrameServer.onDataAvailable(WsFrameServer.java:82) at org.apache.tomcat.websocket.server.WsFrameServer.doOnDataAvailable(WsFrameServer.java:171) at org.apache.tomcat.websocket.server.WsFrameServer.notifyDataAvailable(WsFrameServer.java:151) at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.upgradeDispatch(WsHttpUpgradeHandler.java:148) at org.apache.coyote.org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:53) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1468) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748)

出错场景:springboot开发环境,ssl+wss报错

网上说是一个bug:

于是直接升级springboot内置tomcat

原来:

org.springframework.boot spring-boot-starter-parent 2.0.2.RELEASE

升级后:

org.springframework.boot spring-boot-starter-parent 2.1.6.RELEASE

以上方案会把tomcat8.x.x升级到9.x.x,慎重使用。

​​http://tomcat.10.x6.nabble.com/Bug-59062-New-Failed-to-close-the-ServletOutputStream-connection-cleanly-td5047124.html​​


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:wangEditor编辑器控件里textarea的id不要用content
下一篇:SpringBoot扩展外部化配置的原理解析
相关文章

 发表评论

评论列表