A small memory footprint AMQP implimentation

Dependents:   iothub_client_sample_amqp remote_monitoring simplesample_amqp

Files at this revision

API Documentation at this revision

Comitter:
AzureIoTClient
Date:
Thu Oct 04 09:16:13 2018 -0700
Parent:
46:01f7ca900e07
Commit message:
1.2.10

Changed in this revision

amqpvalue_to_string.c Show annotated file Show diff for this revision Revisions of this file
message_sender.c Show annotated file Show diff for this revision Revisions of this file
--- a/amqpvalue_to_string.c	Tue Sep 11 11:13:43 2018 -0700
+++ b/amqpvalue_to_string.c	Thu Oct 04 09:16:13 2018 -0700
@@ -338,7 +338,7 @@
             }
             else
             {
-                char* uuid_string_value = UUID_to_string(&uuid_value);
+                char* uuid_string_value = UUID_to_string((const UUID_T *)&uuid_value);
                 if (uuid_string_value == NULL)
                 {
                     LogError("Failure getting UUID stringified value");
--- a/message_sender.c	Tue Sep 11 11:13:43 2018 -0700
+++ b/message_sender.c	Thu Oct 04 09:16:13 2018 -0700
@@ -753,7 +753,6 @@
     }
     else
     {
-        indicate_all_messages_as_error(message_sender);
         (void)messagesender_close(message_sender);
 
         free(message_sender);
@@ -805,6 +804,8 @@
     }
     else
     {
+        indicate_all_messages_as_error(message_sender);
+
         if ((message_sender->message_sender_state == MESSAGE_SENDER_STATE_OPENING) ||
             (message_sender->message_sender_state == MESSAGE_SENDER_STATE_OPEN))
         {