Commit d765ee38 authored by wannes's avatar wannes
Browse files

Log handling time for VPN clients

parent ac185423
......@@ -74,6 +74,7 @@ public class DefaultServiceListener implements ServiceListener {
pendingConnections.put(client.id, c);
log.info(String.format("Authorized %s (%s,%s)", client.username, client.id, client.kid));
long startHandling = System.currentTimeMillis();
LinkedListMultimap<String, String> options = LinkedListMultimap.create();
options.put("push-reset", null);
......@@ -134,6 +135,10 @@ public class DefaultServiceListener implements ServiceListener {
}
vpn.authorizeClient(client.id, client.kid, options);
log.info(String.format("Client %s (%s,%s) handled in " +
(System.currentTimeMillis() - startHandling) / 1000 + " seconds",
client.username, client.id, client.kid));
return null;
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment