From f93686fed4b3e1f45452dedff0c4f75108a639ac Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 14 Nov 2013 22:30:13 +0100 Subject: count bad requests and increase ignore time after request --- pacredir.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pacredir.h') diff --git a/pacredir.h b/pacredir.h index f5107ec..5f3fbb9 100644 --- a/pacredir.h +++ b/pacredir.h @@ -14,6 +14,8 @@ struct services { uint8_t online; /* unix timestamp of last bad request */ __time_t bad; + /* count the number of bad requests */ + unsigned int badcount; }; /* hosts */ @@ -41,8 +43,8 @@ struct request { const char * host; /* port */ uint16_t port; - /* pointer to bad */ - __time_t * bad; + /* pointer to service */ + struct services * service; /* url */ char * url; /* HTTP status code */ -- cgit v1.2.3-54-g00ecf