allow testing with 40000 clients
This commit is contained in:
parent
1022c3326c
commit
745c092044
|
|
@ -47,7 +47,7 @@ struct cellarena_t {
|
|||
int createsize;
|
||||
|
||||
int cellblocks_count;
|
||||
#define CELLBLOCKS_MAX 100 /* track client cell allocator limit! */
|
||||
#define CELLBLOCKS_MAX 200 /* track client cell allocator limit! */
|
||||
char *cellblocks[CELLBLOCKS_MAX]; /* ref as 'char pointer' for pointer arithmetics... */
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ void flood_round(struct floodthread_t *self)
|
|||
continue;
|
||||
}
|
||||
|
||||
sprintf(username, "%x", fd);
|
||||
sprintf(username, "%03x%06x", getpid(), fd);
|
||||
wbufpos = snprintf(wbuf, WBUFLEN, "user %s pass %d\r\n", username, aprs_passcode(username));
|
||||
int w = write(fd, wbuf, wbufpos);
|
||||
if (w != wbufpos) {
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
|
||||
# acl
|
||||
|
||||
allow 127.0.0.1
|
||||
allow 127.0.0.0/24
|
||||
allow 44.0.0.0/8
|
||||
allow 83.145.252.0/24
|
||||
allow 85.188.1.0/24
|
||||
|
||||
allow ::1/128
|
||||
allow ::1/126
|
||||
allow 2001:1bc8:101:1::/64
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue