Re: [Asterisk-java-users] Manager: no socket read timeout ?
Brought to you by:
srt
|
From: Gaetan M. <gm...@ea...> - 2007-01-28 04:10:26
|
Hi Stefan
> can you point me to the code that logs the message you want to have
> issued as warning?
>
>
I'm back to 0.3m1 for tests right now, I'll tell you tomorrow.
I switched back to 0.3m1 to track what looks like a bug ?
If you restart the asterisk server then the reader will try and
reconnect, but when using asterisk live, in the debugger you can see
DaemonPool threads stack up, one new for each (re)connection and the
events are handled multiple times by the channel manager for example.
I think this could be due to the AsteriskServerImpl being reinitialised
and added again and again as a listener for the events (with async on or
off indeed) :
if (asyncEventHandling)
{
eventConnection.addEventListener(new
ManagerEventListenerProxy(this));
}
else
{
eventConnection.addEventListener(this);
}
As a consequence, the events are handled multiple times (by the main
thread or an army of DaemonPool threads :d).
This happens in 0.3m1 and trunk.
regards
Gaetan
|