mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-02-06 02:52:07 +08:00
Don't enforce receive-maximum on the broker
This commit is contained in:
@@ -108,9 +108,15 @@ int handle__accepted_publish(struct mosquitto *context, struct mosquitto__base_m
|
||||
|
||||
if(!cmsg_stored){
|
||||
if(base_msg->data.qos > 0 && context->msgs_in.inflight_quota == 0){
|
||||
log__printf(NULL, MOSQ_LOG_WARNING, "Client %s has exceeded its receive-maximum quota. This behaviour must be fixed on the client.", context->id);
|
||||
#if 0
|
||||
/* Badly behaving clients like on the esp32 fall foul of this
|
||||
* check, so report it for now but don't disconnect, to give chance
|
||||
* for the bad behaviour to be fixed. */
|
||||
/* Client isn't allowed any more incoming messages, so fail early */
|
||||
db__msg_store_free(base_msg);
|
||||
return MOSQ_ERR_RECEIVE_MAXIMUM_EXCEEDED;
|
||||
#endif
|
||||
}
|
||||
|
||||
if(base_msg->data.qos == 0
|
||||
|
||||
Reference in New Issue
Block a user