Permalink
Browse files

Just call UDPSocket#close, not close_read/write

  • Loading branch information...
1 parent b867be0 commit 2434a00a11bd39dc82f7eced9573e3673505c9fd @jordansissel jordansissel committed Oct 8, 2012
Showing with 2 additions and 4 deletions.
  1. +1 −2 lib/logstash/inputs/syslog.rb
  2. +1 −2 lib/logstash/inputs/udp.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)
@@ -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)

0 comments on commit 2434a00

Please sign in to comment.