Revision 525d7d0e
net_helper-ml.c | ||
---|---|---|
361 | 361 |
int publish_interval = 60; |
362 | 362 |
int verbosity = DCLOG_ERROR; |
363 | 363 |
|
364 |
int bucketsize = 100; /* this allows a burst of 100kB */ |
|
365 |
int rate = 0; /* disabled by default */ |
|
366 |
int queuesize = 100; /* up to 100kB of data will be stored in the shaper queue, i.e., 0.8s at 1mbps */ |
|
367 |
int RTXqueuesize = 125; /* about 1.6 sec for 1mbps video */ |
|
368 |
double RTXholtdingtime = 1.0; |
|
369 |
|
|
364 | 370 |
#ifndef WIN32 |
365 | 371 |
signal(SIGPIPE, SIG_IGN); // workaround for a known issue in libevent2 with SIGPIPE on TPC connections |
366 | 372 |
#endif |
... | ... | |
387 | 393 |
|
388 | 394 |
config_value_int(cfg_tags, "verbosity", &verbosity); |
389 | 395 |
|
396 |
config_value_int(cfg_tags, "bucketsize", &bucketsize); |
|
397 |
config_value_int(cfg_tags, "rate", &rate); |
|
398 |
config_value_int(cfg_tags, "queuesize", &queuesize); |
|
399 |
config_value_int(cfg_tags, "RTXqueuesize", &RTXqueuesize); |
|
400 |
config_value_double(cfg_tags, "RTXholtdingtime", &RTXholtdingtime); |
|
401 |
|
|
390 | 402 |
me = malloc(sizeof(nodeID)); |
391 | 403 |
if (me == NULL) { |
392 | 404 |
return NULL; |
... | ... | |
411 | 423 |
|
412 | 424 |
mlSetVerbosity(verbosity); |
413 | 425 |
|
426 |
mlSetRateLimiterParams(bucketsize, rate, queuesize, RTXqueuesize, RTXholtdingtime); |
|
427 |
|
|
414 | 428 |
#ifdef MONL |
415 | 429 |
{ |
416 | 430 |
void *repoclient; |
Also available in: Unified diff