odissey: set default route client_max limit to 100

This commit is contained in:
Dmitry Simonenko 2017-01-20 17:26:03 +03:00
parent 574db6fe05
commit 1508e68daa
2 changed files with 8 additions and 1 deletions

View File

@ -101,6 +101,12 @@ od_schemeroute_match(od_scheme_t *scheme, char *name)
return NULL;
}
static inline void
od_schemeroute_init(od_schemeroute_t *route)
{
route->client_max = 100;
}
od_schemeroute_t*
od_schemeroute_add(od_scheme_t *scheme)
{
@ -109,6 +115,7 @@ od_schemeroute_add(od_scheme_t *scheme)
if (r == NULL)
return NULL;
memset(r, 0, sizeof(*r));
od_schemeroute_init(r);
od_listinit(&r->link);
od_listappend(&scheme->routing_table, &r->link);
return r;

View File

@ -32,7 +32,7 @@ odissey {
"test" {
route "default"
ttl 5
# client_max 2
# client_max 100
}
# default {
# route "default"