mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
LOGSTASH-1886: intercept exception raised by march_hare
Since ae867bc64
, the march_hare version we use raises an error when the
network link is broken while the socket is idle. This case must be
handled by logstash to initiate the reconnection process.
This commit is contained in:
parent
637694557c
commit
abe6bdbbd8
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class LogStash::Outputs::RabbitMQ
|
|||
else
|
||||
@logger.warn("Tried to send a message, but not connected to RabbitMQ.")
|
||||
end
|
||||
rescue MarchHare::Exception, com.rabbitmq.client.AlreadyClosedException => e
|
||||
rescue MarchHare::Exception, IOError, com.rabbitmq.client.AlreadyClosedException => e
|
||||
@connected.set(false)
|
||||
n = 10
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue