diff options
author | Christian Hesse <mail@eworm.de> | 2013-11-14 22:30:13 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-11-14 22:30:13 +0100 |
commit | f93686fed4b3e1f45452dedff0c4f75108a639ac (patch) | |
tree | 76b485e991cacc8f02cc2729a9e18a7d3db37e9a /pacredir.h | |
parent | 2363f05e54da345d21e4e784da61e88f650a4eed (diff) | |
download | paccache-f93686fed4b3e1f45452dedff0c4f75108a639ac.tar.gz paccache-f93686fed4b3e1f45452dedff0c4f75108a639ac.tar.zst |
count bad requests and increase ignore time after request
Diffstat (limited to 'pacredir.h')
-rw-r--r-- | pacredir.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 */ |