[
https://issues.apache.org/jira/browse/PROTON-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15696178#comment-15696178
]
Robbie Gemmell commented on PROTON-1253:
----------------------------------------
If you are just starting out I'd advise against using Messenger, but instead
looking at the newer C++ reactive API bits or even the C Reactor bits.
Messenger doesn't see much developer attention these days, for a variety of
reasons including issues such as you describe. We will actually be removing the
proton-j version of it soon for example.
You are correct that there is no way for messenger to send out heartbeats while
you are delaying, as it has no threads of its own so you need to supply one to
do the tasks. There will be an internal 'tick' process somewhere in the
messenger code where the heartbeat handling occurs (actually handled in the
underlying proton transport), to continue with it I guess you'd need to look
into how that is triggered, which the recieving process has to be doing
somehow. I'm not familiar with messenger, or C bits in general, to assist much
beyond that I'm afraid.
Questions/discussion should go on the users mailing list normally.
> PHP client using C API send no empty frames - ActiveMQ broker drops the
> connection due to Inactivity after 60 seconds
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: PROTON-1253
> URL: https://issues.apache.org/jira/browse/PROTON-1253
> Project: Qpid Proton
> Issue Type: Bug
> Components: proton-c
> Affects Versions: 0.12.0, 0.13.0
> Environment: Linux yuriy-Aspire-E5-573G 4.2.0-18-generic #22-Ubuntu
> SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
> Reporter: Yuriy Yakubskiy
> Labels: messenger, patch, php-proton
> Attachments:
> qpid-proton-0.13.0_messenger_set_idle_timeout_patch.tar.gz
>
>
> Dear developers,
> Could you please, clarify the following issue.
> PHP client disconnected after no data message in the queue for 60 seconds.
> Have client frame trace enabled (PN_TRACE_FRM=true)
> No active frame sent by the client in order to prevent being disconnected by
> ActiveMQ InactivityMonitor
> Please advice, is there any way of setting heartbeats for the PHP client.
> Please find, frames trace below.
> Kind Regards,
> Yuriy
> 2016-07-11 14:05:46
> [0x2af58f0]: -> AMQP
> [0x2af58f0]:0 -> @open(16)
> [container-id="68426F2E-012E-4A64-BE2E-1E5355B4B022", hostname="0.0.0.0",
> channel-max=32767]
> [0x2af58f0]:0 -> @begin(17) [next-outgoing-id=0, incoming-window=2147483647,
> outgoing-window=2147483647]
> [0x2af58f0]:0 -> @attach(18) [name="first-test-queue", handle=0, role=true,
> snd-settle-mode=0, rcv-settle-mode=0, source=@source(40)
> [address="first-test-queue", durable=0, timeout=0, dynamic=false],
> target=@target(41) [address="first-test-queue", durable=0, timeout=0,
> dynamic=false], initial-delivery-count=0]
> [0x2af58f0]:0 -> @flow(19) [incoming-window=2147483647, next-outgoing-id=0,
> outgoing-window=2147483647, handle=0, delivery-count=0, link-credit=1024,
> drain=false]
> [0x2af58f0]: <- AMQP
> [0x2af58f0]:0 <- @open(16) [container-id="", hostname="",
> max-frame-size=4294967295, channel-max=32767, idle-time-out=15000,
> offered-capabilities=@PN_SYMBOL[:"ANONYMOUS-RELAY"],
> properties={:product="ActiveMQ", :platform="Java/1.7.0_101",
> :"topic-prefix"="topic://", :"queue-prefix"="queue://", :version="5.12.0"}]
> [0x2af58f0]:0 <- @begin(17) [remote-channel=0, next-outgoing-id=1,
> incoming-window=0, outgoing-window=0, handle-max=65535]
> [0x2af58f0]:0 <- @flow(19) [next-incoming-id=0, incoming-window=2147483647,
> next-outgoing-id=1, outgoing-window=0]
> [0x2af58f0]:0 <- @attach(18) [name="first-test-queue", handle=0, role=false,
> snd-settle-mode=2, rcv-settle-mode=0, source=@source(40)
> [address="first-test-queue"], target=@target(41)
> [address="first-test-queue"], incomplete-unsettled=false,
> initial-delivery-count=0]
> [0x2af58f0]:0 <- @close(24) [error=@error(29)
> [condition=:"amqp:resource-limit-exceeded", description="local-idle-timeout
> expired"]]
> [0x2af58f0]: <- EOS
> [0x2af58f0]:0 -> @close(24) []
> [0x2af58f0]: -> EOS
> 2016-07-11 14:06:46
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]