You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Michael Ivanov <iv...@logit-ag.de> on 2015/01/12 20:42:40 UTC
messenger fetch interrupt, followup
Strange,
I just changed the timeout from Duration::FOREVER to Duration(4000)
but it still waits for the message forever, no exception is thrown
in 4 seconds...
> Hallo,
>
> I am reading the messages from the queue as follows:
>
> Receiver r(_session.nextReceiver());
> Message message(r.fetch(Duration::FOREVER));
>
> At some moment I want to interrupt the receiver using some signal.
>>From signal handler I invoke pthread_kill(SIGUSR1, pthread_self())
> but fetch is not interrupted. Is it just not possible to interrupt
> this function or am I doing something wrong?
>
> I am using c++ qpidd 0.30
>
> Best regards,
--
\ / | |
(OvO) | Mikhail Iwanow |
(^^^) | Voice: +7 (911) 223-1300 |
\^/ | E-mail: ivans@logit-ag.de |
^ ^ | |
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org