flashpolicyd.rb
# Walks the list of active connections and dump them to the logger at INFO level
Walks the list of active connections and dump them to the logger at INFO level
Walks the list of active connections and dump them to the logger at INFO level
def dumpconnections
    if (@connections.size == 0)
      info("No active connections to dump")
    else
      connections = @connections
      info("Dumping current #{connections.size} connections:")
      connections.each{ |c|
        addr = c.addr
        info("#{c.thread.object_id} started at #{c.timecreated} currently in #{c.thread.status} status serving #{addr[2]} [#{addr[3]}]")
      }
    end
  end
def dumpconnections if ( @connections . size == 0 ) info ( "No active connections to dump" ) else connections = @connections info ( "Dumping current #{connections.size} connections:" ) connections . each { | c | addr = c . addr info ( "#{c.thread.object_id} started at #{c.timecreated} currently in #{c.thread.status} status serving #{addr[2]} [#{addr[3]}]" ) } end end
Walks the list of active connections and dump them to the logger at INFO level
Walks the list of active connections and dump them to the logger at INFO level