I am using pn_messenger_t interface in my private select-based event loop.
I use pn_selectable_t to trigger actual i/o.

As far as I have seen in proton/c source pn_transport_tick is invoked only
from pni_messenger_tick, which is in turn called from pn_messenger_process
only. I do not call the latter explicitly and I do not invoke anything
to set any idle timeout interval inside pn_messenger.

pn_transport_tick() just invokes function, pointed to by process_tick of
pn_io_layer_t structure: but I could not find where this field is set.

Can I use pn_message_t to send heartbeat explicitly?

Best regards,

On 08.05.2020 17:28, Gordon Sim wrote:
> On 08/05/2020 3:04 pm, Michael Ivanov wrote:
>> I attached proton trace with FRM added. Short messages as below are my 
>> manual heartbeat messages, sent each 5 minutes:
>>
>> [0xbdb950]:0 -> @transfer(20) [handle=0, delivery-id=3, 
>> delivery-tag=b"\x03\x00\x00\x00\x00\x00\x00\x00", message-format=0,
>> settled=true] (61) 
>> "\x00SpE\x00Ss\xd0\x00\x00\x001\x00\x00\x00\x03@@\xa1)amqp://157.200.89.200:5672/BPM.FINNAIR.IN"
>>
>> At remote side we have the following error:
>>
>> 2020-05-08 13:54:23.896 [error] <0.10682.4> closing AMQP connection 
>> <0.10682.4> (10.42.0.1:1555 -> 10.42.0.78:5672):
>> missed heartbeats from client, timeout: runnings
>>
>> With corresponding message in proton trace file:
>>
>> CONNECTION ERROR connection aborted (remote)
>>
>> I cannot identify anything like heartbeat inn trace file. Do I miss sthing?
> 
> No, there are no heartbeats sent. RabbitMQ is specifying an idle-timeout of 
> 60000ms i.e. 1 minute, which is why your messages do
> not suffice. If you sent them more frequently that would work.
> 
> Are you using the proactor for IO or do you have your own solution there? If 
> the latter you need to call pn_transport_tick, I
> believe, to have heartbeats sent out. The return from that tells you when you 
> must call it again.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
> For additional commands, e-mail: users-h...@qpid.apache.org
> 


-- 
 \   / |                                   |
 (OvO) |  Михаил Иванов                    |
 (^^^) |      Тел.:    +7(911) 223-1300    |
  \^/  |      E-mail:  iv...@isle.spb.ru   |
  ^ ^  |                                   |

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to