Hello,
I compiled Qpid Proton C library on Ubuntu and I can send and receive message to/from Service Bus using AMQP 1.0 protocol.
On the receive I have a problem...
After receiving the message, the library returns the following error :
LINK ERROR (amqp:link:detach-forced) The link 'receiver-xxx' is force detached by the broker due to errors occurred in consumer(link653)..TrackingId:bba7c767bc18406dba821e5ab4e698c0_G5_B14;12886:652:653,TimeStamp:4/15/2014 3:19:43 PM
I'm using recv.c example in Qpid Proton C library that have the following loop to receive messages :
while(pn_messenger_incoming(messenger)) { pn_messenger_get(messenger, message); check(messenger); char buffer[1024]; size_t buffsize = sizeof(buffer); pn_data_t *body = pn_message_body(message); pn_data_format(body, buffer, &buffsize); printf("Address: %s\n", pn_message_get_address(message)); const char* subject = pn_message_get_subject(message); printf("Subject: %s\n", subject ? subject : "(no subject)"); printf("Content: %s\n", buffer); }
It seems that receiving the message and when the pn_messenger_incoming statement is executed the second time, the library finds connection closed by broker and then returns above error.
Why ?
Paolo.
Paolo Patierno