Skip to content

Commit

Permalink
* NEW [mqtt/include] add 2 macros to define max length of send/recv_…
Browse files Browse the repository at this point in the history
…queue
  • Loading branch information
JaylinYu committed Feb 3, 2022
1 parent 7e08e82 commit fd1bb3f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/nng/mqtt/mqtt_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ extern "C" {
#define NNG_OPT_MQTT_TOPIC_ALIAS "topic-alias"
#define NNG_OPT_MQTT_MAX_QOS "max-qos"

// NNG_MAX_RECV_LMQ and NNG_MAX_SEND_LMQ define the length of waiting queue
// they are the length of nni_lmq, please be ware it affects the memory usage
// significantly while having heavy throughput
#define NNG_MAX_RECV_LMQ 16
#define NNG_MAX_SEND_LMQ 16

// NNG_TLS_xxx options can be set on the client as well.
// E.g. NNG_OPT_TLS_CA_CERT, etc.

Expand Down

0 comments on commit fd1bb3f

Please sign in to comment.