google到的资源好少,基本都是xsocket自己的文档,难道没什么人在用吗?
这个错误
java.nio.channels.ClosedChannelException at org.xsocket.connection.AbstractNonBlockingStream.ensureStreamIsOpenAndWritable(AbstractNonBlockingStream.java:1420) at org.xsocket.connection.AbstractNonBlockingStream.write(AbstractNonBlockingStream.java:1135) ...
at org.xsocket.connection.HandlerAdapter.onData(HandlerAdapter.java:132) at org.xsocket.connection.MultithreadedHandlerAdapter.access$2(MultithreadedHandlerAdapter.java:1) at org.xsocket.connection.MultithreadedHandlerAdapter$2.run(MultithreadedHandlerAdapter.java:80) at org.xsocket.SerializedTaskQueue.performPendingTasks(SerializedTaskQueue.java:121) at org.xsocket.SerializedTaskQueue.access$0(SerializedTaskQueue.java:105) at org.xsocket.SerializedTaskQueue$MultithreadedTaskProcessor.run(SerializedTaskQueue.java:147) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619)
|
貌似是返回时检查socket是否打开并且可写时出错,应该是socket被关闭。
但是关闭的原因是什么?超时?我设置了很长的idletimeout,connectiontimeout是系统默认,应该更长。还是其他地方使用不当?
阅读(2717) | 评论(2) | 转发(0) |