lib/sensu/client/process.rb
# Close the Sensu client TCP and UDP sockets. This method
# iterates through `@sockets`, which contains socket server
# signatures (Fixnum) and connection objects. A signature
# indicates a TCP socket server that needs to be stopped. A
# connection object indicates a socket connection that needs to
# be closed, eg. a UDP datagram socket.
Close the Sensu client TCP and UDP sockets. This method
iterates through `@sockets`, which contains socket server
signatures (Fixnum) and connection objects. A signature
indicates a TCP socket server that needs to be stopped. A
connection object indicates a socket connection that needs to
be closed, eg. a UDP datagram socket.
Close the Sensu client TCP and UDP sockets . This method iterates through ` @sockets ` which contains socket server signatures ( Fixnum ) and connection objects . A signature indicates a TCP socket server that needs to be stopped . A connection object indicates a socket connection that needs to be closed eg . a UDP datagram socket .
def close_sockets
        @logger.info("closing client sockets")
        @sockets.each do |socket|
          if socket.is_a?(Numeric)
            EM.stop_server(socket)
          else
            socket.close_connection
          end
        end
      end
def close_sockets @logger . info ( "closing client sockets" ) @sockets . each do | socket | if socket . is_a? ( Numeric ) EM . stop_server ( socket ) else socket . close_connection end end end
Close the Sensu client TCP and UDP sockets.
Close the Sensu client TCP and UDP sockets .