qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ivanov <iv...@logit-ag.de>
Subject messenger fetch interrupt, followup
Date Mon, 12 Jan 2015 19:42:40 GMT
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


Mime
View raw message