From 6bc8a9b11e0d54643edd65a82c3fb255d2a859c1 Mon Sep 17 00:00:00 2001 From: reger Date: Sun, 26 Apr 2015 04:29:32 +0200 Subject: [PATCH] make Quality of Service Servlet available to prioritize requests from local host This assigns priorities to incoming requests. Higher priority numbers are served before lower. (disabled by default in defaults/web.xml, uncomment or copy entry to DATA/Settings/web.xml) --- defaults/web.xml | 15 ++++++ .../net/yacy/http/Jetty9HttpServerImpl.java | 5 +- .../net/yacy/http/servlets/YaCyQoSFilter.java | 49 +++++++++++++++++++ 3 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 source/net/yacy/http/servlets/YaCyQoSFilter.java diff --git a/defaults/web.xml b/defaults/web.xml index 41cdbfb42..349a3bc6b 100644 --- a/defaults/web.xml +++ b/defaults/web.xml @@ -9,6 +9,20 @@ YaCy Decentralized Web Search + + +