Disable FIXED_IOBUFS, make iobuf size configurable (necessary for higher throughput on some networks)

This commit is contained in:
Heikki Hannikainen 2016-08-15 20:11:36 +03:00
parent e407116802
commit 80a53ef3f9
2 changed files with 4 additions and 2 deletions

View File

@ -129,7 +129,7 @@ int maxclients = 500; /* maximum number of clients */
/* These two are not currently used. The fixed defines are in worker.h,
* OBUF_SIZE and IBUF_SIZE.
*/
int ibuf_size = 8100; /* size of input buffer for clients */
int ibuf_size = 8*1024; /* size of input buffer for clients */
int obuf_size = 8*1024; /* size of output buffer for clients */
int new_fileno_limit;
@ -172,6 +172,8 @@ static struct cfgcmd cfg_cmds[] = {
{ "logintimeout", _CFUNC_ do_interval, &client_login_timeout },
{ "filelimit", _CFUNC_ do_int, &new_fileno_limit },
{ "maxclients", _CFUNC_ do_int, &maxclients },
{ "ibufsize", _CFUNC_ do_int, &ibuf_size },
{ "obufsize", _CFUNC_ do_int, &obuf_size },
{ "httpstatus", _CFUNC_ do_httpstatus, &new_http_bind },
{ "httpupload", _CFUNC_ do_httpupload, &new_http_bind_upload },
{ "httpstatusoptions", _CFUNC_ do_string, &new_http_status_options },

View File

@ -271,7 +271,7 @@ struct client_udp_t { /* UDP services can be available at multiple
* the 30-second dupe check window. The current APRS-IS rate is somewhere around
* 3-4 Kbytes/second, and then we have the operating system TCP socket buffers too.
*/
#define FIXED_IOBUFS 1
#define FIXED_IOBUFS 0
#ifdef FIXED_IOBUFS
#define OBUF_SIZE 8000
#define IBUF_SIZE 8000