mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
authcache switched to hashtables, overflow fixed
- authcache switched to use hashtables, size parameter added - overflow fixed on hashinit - hashtable prefers new values on insert if table is full - hashtable is able to compact/grow
This commit is contained in:
1 parent
a3729354b8
commit
7102afe856
6 files changed
+159
-159
No files matched your search
@@ -773,10 +773,13 @@ struct hashtable {
|
||||
void (*index2hash)(const void *index, unsigned char *hash, const unsigned char *rnd);
|
||||
unsigned growlimit;
|
||||
int tablesize;
|
||||
time_t compacted;
|
||||
};
|
||||
|
||||
extern struct hashtable dns_table;
|
||||
extern struct hashtable dns6_table;
|
||||
extern struct hashtable auth_table;
|
||||
|
||||
struct pluginlink {
|
||||
struct symbol symbols;
|
||||
struct extparam *conf;
|
||||
|
||||
Reference in new issue
Block a user