What is max_packets used for when calling mosquitto_loop / mosquitto_loop_read / mosquitto_loop_write
Asked by
Yun Wu
Inside mosquitto_loop(), max_packets appears in 3 places:
1) if(!mosq || max_packets < 1) return MOSQ_ERR_INVAL;
2) rc = mosquitto_
3) rc = mosquitto_
Inside mosquitto_
if(max_packets < 1) return MOSQ_ERR_INVAL;
then replaced with mosq->queue_len.
It seems that value of max_packets is not really used.
So, what is the meaning of existence of max_packets? Why not simply remove it?
It seems that the value of max_packets is never really used.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- mosquitto Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Roger Light
- Solved:
- Last query:
- Last reply:
To post a message you must log in.