# Auxiliary handlers to track active connections.

@load conn

global active_conn: table[conn_id] of connection;

event connection_established(c: connection)
	{
	active_conn[c$id] = c;
	}

event connection_finished(c: connection)
	{
	delete active_conn[c$id];
	}

event connection_reset(c: connection)
	{
	delete active_conn[c$id];
	}

event connection_timeout(c: connection)
	{
	delete active_conn[c$id];
	}
