• Register
0 votes


I am seeing "{writer,send_failed,{error,closed}}" error on server side and "java.net.SocketException: Connection reset by peer: socket write error" error on java client side intermittently.  What could possibly go wrong here?  Both server and client versions are 3.4.3.

java.net.SocketException: Connection reset by peer: socket write error
	at java.net.SocketOutputStream.socketWrite0(Native Method)
	at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113)
	at java.net.SocketOutputStream.write(SocketOutputStream.java:159)
	at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
	at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
	at java.io.DataOutputStream.flush(DataOutputStream.java:123)
	at com.rabbitmq.client.impl.SocketFrameHandler.flush(SocketFrameHandler.java:150)
	at com.rabbitmq.client.impl.AMQConnection.flush(AMQConnection.java:514)
	at com.rabbitmq.client.impl.AMQCommand.transmit(AMQCommand.java:125)
	at com.rabbitmq.client.impl.AMQChannel.quiescingTransmit(AMQChannel.java:316)
	at com.rabbitmq.client.impl.AMQChannel.transmit(AMQChannel.java:292)
	at com.rabbitmq.client.impl.ChannelN.basicPublish(ChannelN.java:647)
	at com.rabbitmq.client.impl.ChannelN.basicPublish(ChannelN.java:630)
	at com.rabbitmq.client.impl.ChannelN.basicPublish(ChannelN.java:621)

Please help me.

6.1k points

Please log in or register to answer this question.

1 Answer

0 votes


Something is causing the AMQP connection to fail at a TCP level - either
some network link is going down, or some "smart" piece of networking
equipment is cutting the connection off.

- show quoted text -
> --
> You received this message because you are subscribed to the Google
> Groups "rabbitmq-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to rabbitm...@googlegroups.com
> <mailto:rabbitmq-users+unsubscribe@googlegroups.com>.
> To post to this group, send email to rabbitm...@googlegroups.com
> <mailto:rabbitm...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Let me know if it is working for you or not.

35k points