spec/spec_helper.rb in logstash-input-unix-2.0.2 vs spec/spec_helper.rb in logstash-input-unix-2.0.3
- old
+ new
@@ -20,10 +20,10 @@
def loop(forever=false)
@thread = Thread.new do
begin
s = @socket.accept
s.puts "hi" while forever
- rescue Errno::EPIPE
+ rescue Errno::EPIPE, Errno::ECONNRESET
# ...
end
end
self
end