Skip to content

Commit

Permalink
* MDF [conf] raise up def value of msq_len & use uint32 for taskq num
Browse files Browse the repository at this point in the history
Signed-off-by: jaylin <jaylin@emqx.io>
  • Loading branch information
JaylinYu committed Apr 17, 2024
1 parent a6be481 commit ef3e3ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/nng/supplemental/nanolib/conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -538,10 +538,10 @@ struct conf {
char *conf_file;
char *url;
bool enable;
int num_taskq_thread;
int max_taskq_thread;
int property_size;
int msq_len;
uint32_t num_taskq_thread;
uint32_t max_taskq_thread;
uint32_t parallel; // broker ctx
uint64_t total_ctx; // Total ctx of work (bridge + AWS + broker + HTTP)
uint64_t max_packet_size; // byte
Expand Down
2 changes: 1 addition & 1 deletion src/supplemental/nanolib/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ conf_init(conf *nanomq_conf)
nanomq_conf->parallel = ncpu * 2;

nanomq_conf->property_size = sizeof(uint8_t) * 32;
nanomq_conf->msq_len = 2048;
nanomq_conf->msq_len = 20480;
nanomq_conf->qos_duration = 10;
nanomq_conf->backoff = 1.5;
nanomq_conf->max_inflight_window = 2048;
Expand Down

0 comments on commit ef3e3ed

Please sign in to comment.