allow testing with 40000 clients

This commit is contained in:
Heikki Hannikainen 2012-10-11 22:43:32 +03:00
parent 1022c3326c
commit 745c092044
3 changed files with 4 additions and 4 deletions

View File

@ -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... */
};

View File

@ -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) {

View File

@ -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