Getting Connection reset exception too often while using vertx httpclient 3.5.1 and keep alive(true)

39 views
Skip to first unread message

Abhishek Singh

unread,
May 10, 2018, 5:54:46 PM5/10/18
to vert.x

java.io.IOException: Connection reset by peer
	at sun.nio.ch.FileDispatcherImpl.read0(Native Method) ~[?:1.8.0_102]
	at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) ~[?:1.8.0_102]
	at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) ~[?:1.8.0_102]
	at sun.nio.ch.IOUtil.read(IOUtil.java:192) ~[?:1.8.0_102]
	at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) ~[?:1.8.0_102]
	at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288) ~[adserver-1.0.475-stage-fat.jar:1.0.475-stage]
	at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1108) ~[adserver-1.0.475-stage-fat.jar:1.0.475-stage]
	at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:345) ~[adserver-1.0.475-stage-fat.jar:1.0.475-stage]
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:126) [adserver-1.0.475-stage-fat.jar:1.0.475-stage]
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645) [adserver-1.0.475-stage-fat.jar:1.0.475-stage]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580) [adserver-1.0.475-stage-fat.jar:1.0.475-stage]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497) [adserver-1.0.475-stage-fat.jar:1.0.475-stage]
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459) [adserver-1.0.475-stage-fat.jar:1.0.475-stage]
	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886) [adserver-1.0.475-stage-fat.jar:1.0.475-stage]
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [adserver-1.0.475-stage-fat.jar:1.0.475-stage]
	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_102]

sdmjh...@gmail.com

unread,
May 10, 2018, 11:02:50 PM5/10/18
to vert.x
u can try setIdleTimeOut to resolve this problem

在 2018年5月11日星期五 UTC+8上午5:54:46,Abhishek Singh写道:

Julien Viet

unread,
May 11, 2018, 2:03:03 AM5/11/18
to ve...@googlegroups.com
3.5.2 will come with keep alive timeout support for HttpClient and supports response sent headers specifying a timeout.

-- 
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/7db336d6-b0b5-40ea-91f0-1c37a292eac2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages