Add CONFIG_ASYNC_TCP_QUEUE_SIZE

This commit is contained in:
Mathieu Carbou
2024-04-27 01:17:55 +02:00
parent 0227108fc4
commit de284cc5cc
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ static uint32_t _closed_index = []() {
static inline bool _init_async_event_queue(){
if(!_async_queue){
_async_queue = xQueueCreate(32, sizeof(lwip_event_packet_t *));
_async_queue = xQueueCreate(CONFIG_ASYNC_TCP_QUEUE_SIZE, sizeof(lwip_event_packet_t *));
if(!_async_queue){
return false;
}
+4
View File
@@ -65,6 +65,10 @@ extern "C" {
#define CONFIG_ASYNC_TCP_PRIORITY 3
#endif
#ifndef CONFIG_ASYNC_TCP_QUEUE_SIZE
#define CONFIG_ASYNC_TCP_QUEUE_SIZE 32
#endif
class AsyncClient;
#define ASYNC_MAX_ACK_TIME 5000