Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Just call UDPSocket#close, not close_read/write

  • Loading branch information...
commit 2434a00a11bd39dc82f7eced9573e3673505c9fd 1 parent b867be0
@jordansissel jordansissel authored
Showing with 2 additions and 4 deletions.
  1. +1 −2  lib/logstash/inputs/syslog.rb
  2. +1 −2  lib/logstash/inputs/udp.rb
View
3  lib/logstash/inputs/syslog.rb
@@ -113,8 +113,7 @@ def udp_listener(output_queue)
@logger.info("Starting syslog udp listener", :address => "#{@host}:#{@port}")
if @udp
- @udp.close_read
- @udp.close_write
+ @udp.close
end
@udp = UDPSocket.new(Socket::AF_INET)
View
3  lib/logstash/inputs/udp.rb
@@ -49,8 +49,7 @@ def udp_listener(output_queue)
@logger.info("Starting UDP listener", :address => "#{@host}:#{@port}")
if @udp
- @udp.close_read
- @udp.close_write
+ @udp.close
end
@udp = UDPSocket.new(Socket::AF_INET)
Please sign in to comment.
Something went wrong with that request. Please try again.