mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
catch case where interruption can hit us
This commit is contained in:
parent
c753f26e59
commit
b63cde62c0
1 changed files with 3 additions and 0 deletions
|
@ -73,6 +73,9 @@ class LogStash::Inputs::Tcp < LogStash::Inputs::Base
|
|||
:client => socket.peer)
|
||||
end # begin
|
||||
|
||||
rescue IOError
|
||||
# nothing
|
||||
ensure
|
||||
begin
|
||||
socket.close
|
||||
rescue IOError
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue