Threads timing out

Sai-Lai Lo S.Lo@orl.co.uk
Tue, 24 Feb 1998 16:55:36 GMT


>>>>> Tom Haggie writes:

> Hi I've got a problem where if I leave my code running for a bit ( about
> 1 Min)  something comes a long and deletes my thread! Specifically the
> function is "scanForIdle" which does something with a heartbeat and then
> shuts me down - causing an exception later when it's used and we get a
> return saying it's been closed down. Is there something I am
> doing or should be doing to stop this behavior - If I make the heartbeat
> always zero it seems to work fine...

The chapter on connection management in the user guide describes the
behaviour in more detail. As you have found out, setting the scan period to
zero stops the shutdown of idle connection altogether.

>From your description, I guess you are referring to a thread in a client
that runs on top of a non-omniORB ORB, right? As I have explained in the
user guide, some ORBs are not very good in handling connection close down
initiated by the server side. The spec. requires the client to retry
transparently under this situation but sadly not all ORBs do. 

Sai-Lai