You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by "634749030@qq.com" <63...@qq.com> on 2016/09/20 08:04:48 UTC

async send message blocked forever

HI:
   I user the c++ broker(verison 0.34) and the c++ API on windows,but I
found the send() function of sender maybe blocked forever, I did not start
the flow stop,and send message async; 
example code:
       Sender sender = session.createSender(address);
       sender.setCapacity(1000);
       while(true)
       {
              sender.send(msg,false);
       }

the stack describe in the picture; 
<http://qpid.2158936.n2.nabble.com/file/n7650922/stack.png> 



--
View this message in context: http://qpid.2158936.n2.nabble.com/async-send-message-blocked-forever-tp7650922.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

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


Re: async send message blocked forever

Posted by Gordon Sim <gs...@redhat.com>.
On 20/09/16 09:39, 634749030@qq.com wrote:
> thanks!
>    the message is not large, the depth of the queue information flowed:
> <http://qpid.2158936.n2.nabble.com/file/n7650926/queue.png>

The stack trace looks like the sender is waiting for confirmation of 
previously sent messages. As the broker is not in flow control, I'm not 
sure why it is not getting the confirmations. You could try getting a 
protocol trace e.g. QPID_LOG_ENABLE=trace+:Network. Can you reproduce a 
similar issue using qpid-send?


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


Re: async send message blocked forever

Posted by "634749030@qq.com" <63...@qq.com>.
 Is any information useful?  Look forward to your reply,thanks!
  




--
View this message in context: http://qpid.2158936.n2.nabble.com/async-send-message-blocked-forever-tp7650922p7650927.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

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


Re: async send message blocked forever

Posted by "634749030@qq.com" <63...@qq.com>.
thanks!
   the message is not large, the depth of the queue information flowed:
<http://qpid.2158936.n2.nabble.com/file/n7650926/queue.png> 



--
View this message in context: http://qpid.2158936.n2.nabble.com/async-send-message-blocked-forever-tp7650922p7650926.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

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


Re: async send message blocked forever

Posted by Gordon Sim <gs...@redhat.com>.
On 20/09/16 09:04, 634749030@qq.com wrote:
> HI:
>    I user the c++ broker(verison 0.34) and the c++ API on windows,but I
> found the send() function of sender maybe blocked forever, I did not start
> the flow stop,and send message async;
> example code:
>        Sender sender = session.createSender(address);
>        sender.setCapacity(1000);
>        while(true)
>        {
>               sender.send(msg,false);
>        }
>
> the stack describe in the picture;
> <http://qpid.2158936.n2.nabble.com/file/n7650922/stack.png>
>

What is the depth of the queue you are sending to? If it is large, you 
may be flow controlled. If that is the case you can alter the settings 
to avoid, or postpone, the flow control if desired.


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