From: gaurav-aws Date: Mon, 22 Jul 2019 18:27:45 +0000 (+0000) Subject: Fix DNS resolution failure for test.mosquitto.org X-Git-Tag: V10.3.0~129 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=80dff7da082c6bd8810c558a30197455204347d5;p=freertos Fix DNS resolution failure for test.mosquitto.org The DNS cache entry size was not big enough to fit the DNS name and as a result the DNS reply parsing code returned error. Increased the size of the entry to ensure that the DNS name can fit in. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2692 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/FreeRTOS-Plus/Demo/FreeRTOS_IoT_Libraries/mqtt/DemoTasks/SimpleMQTTExamples.c b/FreeRTOS-Plus/Demo/FreeRTOS_IoT_Libraries/mqtt/DemoTasks/SimpleMQTTExamples.c index 648999eb6..99d183c0a 100644 --- a/FreeRTOS-Plus/Demo/FreeRTOS_IoT_Libraries/mqtt/DemoTasks/SimpleMQTTExamples.c +++ b/FreeRTOS-Plus/Demo/FreeRTOS_IoT_Libraries/mqtt/DemoTasks/SimpleMQTTExamples.c @@ -229,8 +229,8 @@ TaskHandle_t xDemoTaskHandle = ( TaskHandle_t ) pvCallbackContext; /* Inform the demo task about the message received from the MQTT broker. */ xTaskNotify( xDemoTaskHandle, - mqttexampleMESSAGE_RECEIVED_BIT, - eSetBits /* Set the mqttexampleMESSAGE_RECEIVED_BIT in the demo task's notification value. */ + mqttexampleMESSAGE_RECEIVED_BIT, + eSetBits /* Set the mqttexampleMESSAGE_RECEIVED_BIT in the demo task's notification value. */ ); } /*-----------------------------------------------------------*/ diff --git a/FreeRTOS-Plus/Demo/FreeRTOS_IoT_Libraries/mqtt/FreeRTOSIPConfig.h b/FreeRTOS-Plus/Demo/FreeRTOS_IoT_Libraries/mqtt/FreeRTOSIPConfig.h index 79ce6d429..563f0cb09 100644 --- a/FreeRTOS-Plus/Demo/FreeRTOS_IoT_Libraries/mqtt/FreeRTOSIPConfig.h +++ b/FreeRTOS-Plus/Demo/FreeRTOS_IoT_Libraries/mqtt/FreeRTOSIPConfig.h @@ -88,7 +88,7 @@ socket has been destroyed, the result will be stored into the cache. The next call to FreeRTOS_gethostbyname() will return immediately, without even creating a socket. */ #define ipconfigUSE_DNS_CACHE ( 1 ) -#define ipconfigDNS_CACHE_NAME_LENGTH ( 16 ) +#define ipconfigDNS_CACHE_NAME_LENGTH ( 32 ) #define ipconfigDNS_CACHE_ENTRIES ( 4 ) #define ipconfigDNS_REQUEST_ATTEMPTS ( 2 )