Skip to content

Commit

Permalink
Revive close when raised error
Browse files Browse the repository at this point in the history
Signed-off-by: Yuta Iwama <[email protected]>
  • Loading branch information
ganmacs committed Apr 26, 2019
1 parent 41d19a3 commit d3cb120
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/fluent/plugin/out_forward.rb
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,8 @@ def send_data(tag, chunk)
rescue
if @keepalive
@socket_cache.revoke
else
sock.close rescue nil
end
raise
end
Expand Down

0 comments on commit d3cb120

Please sign in to comment.