[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #52332] MQTT_OUTPUT_RINGBUF_SIZE must be a power of 2
From: |
David Bourgeois |
Subject: |
[lwip-devel] [bug #52332] MQTT_OUTPUT_RINGBUF_SIZE must be a power of 2 |
Date: |
Thu, 2 Nov 2017 19:29:25 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 |
URL:
<http://savannah.nongnu.org/bugs/?52332>
Summary: MQTT_OUTPUT_RINGBUF_SIZE must be a power of 2
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: jaguarondi
Submitted on: Thu 02 Nov 2017 11:29:24 PM UTC
Category: apps
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
lwIP version: git head
_______________________________________________________
Details:
As MQTT_OUTPUT_RINGBUF_SIZE is used as a mask in the ring buffer, it must be a
power of 2. Could we add that information in the documentation field?
/**
* Output ring-buffer size, must be a power of 2 (128, 256, 512, etc.) and
must be able to fit largest outgoing publish message topic+payloads
*/
#ifndef MQTT_OUTPUT_RINGBUF_SIZE
#define MQTT_OUTPUT_RINGBUF_SIZE 256
#endif
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?52332>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #52332] MQTT_OUTPUT_RINGBUF_SIZE must be a power of 2,
David Bourgeois <=