websocket Linux 环境下报错

org.apache.coyote.AbstractProcessor setErrorState

INFO: An error occurred in processing while on a non-container thread. The connection will be closed immediately

java.net.SocketException: Broken pipe

at java.net.SocketOutputStream.socketWrite0(Native Method)

at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)

at java.net.SocketOutputStream.write(SocketOutputStream.java:153)

at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:215)

at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:480)

at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:119)

at org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:801)

at org.apache.coyote.Response.action(Response.java:172)

at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:363)

at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:331)

at org.apache.catalina.connector.Response.flushBuffer(Response.java:611)

at org.apache.catalina.connector.ResponseFacade.flushBuffer(ResponseFacade.java:306)

at javax.servlet.ServletResponseWrapper.flushBuffer(ServletResponseWrapper.java:160)

at org.springframework.boot.context.web.ErrorPageFilter$ErrorWrapperResponse.flushBuffer(ErrorPageFilter.java:317)

at javax.servlet.ServletResponseWrapper.flushBuffer(ServletResponseWrapper.java:160)

at javax.servlet.ServletResponseWrapper.flushBuffer(ServletResponseWrapper.java:160)

at org.springframework.security.web.context.OnCommittedResponseWrapper.flushBuffer(OnCommittedResponseWrapper.java:143)

at org.springframework.security.web.context.SaveContextOnUpdateOrErrorResponseWrapper.flushBuffer(SaveContextOnUpdateOrErrorResponseWrapper.java:40)

at org.springframework.http.server.ServletServerHttpResponse.flush(ServletServerHttpResponse.java:91)

at org.springframework.web.socket.sockjs.transport.session.AbstractHttpSockJsSession.writeFrameInternal(AbstractHttpSockJsSession.java:345)

at org.springframework.web.socket.sockjs.transport.session.AbstractSockJsSession.writeFrame(AbstractSockJsSession.java:325)

at org.springframework.web.socket.sockjs.transport.session.AbstractSockJsSession.sendHeartbeat(AbstractSockJsSession.java:249)

at org.springframework.web.socket.sockjs.transport.session.AbstractSockJsSession$1.run(AbstractSockJsSession.java:269)

at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

--------------------------------------------------------------------------------------------------------------------------------------

这个问题困扰了我很久,在Windows下没有问题,到Linux  环境下就会频繁断掉,我用的是广播式,一对一 session确认当前的用户,一对一聊天,报这个错误。请各位大神帮我看看。

你可能感兴趣的:(websocket Linux 环境下报错)