[ 
https://issues.apache.org/jira/browse/ARTEMIS-1283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16084910#comment-16084910
 ] 

ASF subversion and git services commented on ARTEMIS-1283:
----------------------------------------------------------

Commit 22b8076b714d4958589946a684225f19e055da78 in activemq-artemis's branch 
refs/heads/master from [~tabish121]
[ https://git-wip-us.apache.org/repos/asf?p=activemq-artemis.git;h=22b8076 ]

ARTEMIS-1283 Fix delay on drained response

On completion of drain the response is not flushed and the
client can wait a few seconds before another broker task
flushes the work.  Flush the connection after updating the
linked as being drained.  Also perform the work with the
connection lock held to prevent conccurent update of proton
state.


> AMQP Drain of a link encounters unexpected response delay
> ---------------------------------------------------------
>
>                 Key: ARTEMIS-1283
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1283
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: AMQP
>    Affects Versions: 2.1.0
>            Reporter: Timothy Bish
>            Assignee: clebert suconic
>             Fix For: 2.2.0
>
>
> When an AMQP attempts to drain a link the broker can take a inordinate amount 
> of time to respond that the link is drained, especially if there's no 
> messages to send.  This happens because the action that attempts to force 
> delivery is signaled of completion via a callback and the update to proton is 
> made but no flush of the connection state is done.
> As a side not the drained call to the link is done outside the connection 
> lock which is unsafe. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to