vertx3 bug
来源:互联网 发布:originlab mac版 编辑:程序博客网 时间:2024/06/03 21:31
java.io.IOException: An established connection was aborted by the software in your host machine
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
at sun.nio.ch.IOUtil.read(IOUtil.java:192)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:313)
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:881)
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:242)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
at sun.nio.ch.IOUtil.read(IOUtil.java:192)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:313)
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:881)
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:242)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
at java.lang.Thread.run(Thread.java:745)
原因是请求返回后没关闭,vertx强制关闭远程io,增加req.response().close();关闭
req.response().putHeader("Content-Length", String.valueOf("hello word".length()))
.setStatusCode(200).write("hello word").end();
req.response().close();
0 0
- vertx3 bug
- Vertx3入门应用
- bug
- Bug
- BUG
- bug
- bug
- BUG?
- bug
- BUG
- bug
- bug?
- bug
- bug
- Bug
- BUG!!!
- BUG
- Bug
- 【ZYNQ-7000开发之十六】音频信号处理
- 去掉手机页面a标签点击跳转时出现的样式改变
- linux权限命令
- 手把手带你画一个 时尚仪表盘 Android 自定义View
- ACM程序设计选修课——1024: 末位零(求末尾0的方法+可有可无的快速幂)
- vertx3 bug
- 见到github上的view合集,亮瞎本大帅狗眼了
- Android开发入门之Android开发工具原生包NDK
- THE SWIFT CODE之设置UIBUTTON的不同方式创建,以及不同的状态和外观
- GLSL学习笔记---之内建函数
- 大数据风控 ——互联网消费金融的必由之路
- BZOJ-1975 魔法猪学院 K短路 (A*+SPFA)
- iOS-网络图片通过NSOperation线程依赖异步加载并保存到沙盒中
- datatable使用