]> git.sur5r.net Git - freertos/commitdiff
Fix DNS resolution failure for test.mosquitto.org
authorgaurav-aws <gaurav-aws@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 22 Jul 2019 18:27:45 +0000 (18:27 +0000)
committergaurav-aws <gaurav-aws@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 22 Jul 2019 18:27:45 +0000 (18:27 +0000)
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

FreeRTOS-Plus/Demo/FreeRTOS_IoT_Libraries/mqtt/DemoTasks/SimpleMQTTExamples.c
FreeRTOS-Plus/Demo/FreeRTOS_IoT_Libraries/mqtt/FreeRTOSIPConfig.h

index 648999eb6654a5a9d7a714d33626c0bbd7d69713..99d183c0afc299929cd3b8ea5b7b74700b3b0173 100644 (file)
@@ -229,8 +229,8 @@ TaskHandle_t xDemoTaskHandle = ( TaskHandle_t ) pvCallbackContext;
 \r
        /* Inform the demo task about the message received from the MQTT broker. */\r
        xTaskNotify( xDemoTaskHandle,\r
-                               mqttexampleMESSAGE_RECEIVED_BIT,\r
-                               eSetBits /* Set the mqttexampleMESSAGE_RECEIVED_BIT in the demo task's notification value. */\r
+                                mqttexampleMESSAGE_RECEIVED_BIT,\r
+                                eSetBits /* Set the mqttexampleMESSAGE_RECEIVED_BIT in the demo task's notification value. */\r
                                );\r
 }\r
 /*-----------------------------------------------------------*/\r
index 79ce6d4290b96bbc07f7348ba14e3a3a37806fd6..563f0cb09542bf9ab0b36806d8ff9ec7a28e69a7 100644 (file)
@@ -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\r
 a socket. */\r
 #define ipconfigUSE_DNS_CACHE                          ( 1 )\r
-#define ipconfigDNS_CACHE_NAME_LENGTH          ( 16 )\r
+#define ipconfigDNS_CACHE_NAME_LENGTH          ( 32 )\r
 #define ipconfigDNS_CACHE_ENTRIES                      ( 4 )\r
 #define ipconfigDNS_REQUEST_ATTEMPTS           ( 2 )\r
 \r