Privacy and Security Notice

Archived Messages for CDEV@cebaf.gov: Re: cdev ca reconnection

Re: cdev ca reconnection

Johannes van Zeijts (johannes@CEBAF.GOV)
Tue, 17 Feb 1998 12:22:30 -0500

This is a multi-part message in MIME format.
--------------10453629BE48FD48C848EA97
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Elliott Wolin CEBAF 757-269-6391 wolin@cebaf.gov wrote:
>
> Hi,
>
> Our problem is that occasionally a ca channel disappears for a while,
> and cdev gives up on it. Once cdev thinks a channel is dead, it
> apparently thinks it's dead forever.
>
> I need to have cdev NOT give up on the channel, and to somehow
> reconnect when the channel is available again. It would be ok if I
> had to do this manually, as long as it CAN be done.
>
>

Once a monitor is established on a CA RequestObject it will stay alive.

If the server (ioc) goes down, you will get a callback with CDEV_DISCONNECTED status and no data.

When the server reconnects you will get a new callback with CDEV_RECONNECTED and valid data.

This will happen automatically (as long as you give cdev/ca a chance to pend periodically).

For cdev <= 1.6 this only works for CA, one of the main efforts in cdev/1.6.2 is to provide similar behaviour for the
cdev generic server derived servers.

Now, if you are talking about not ever receiving ANY callbacks, that is a different problem.
My current most robust solution is to periodically check if all requested callbacks have come in at least once.
I retry (a new sendCallback call) dead ones after a couple of minutes.

-Johannes
--------------10453629BE48FD48C848EA97
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Johannes van Zeijts
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Johannes van Zeijts
n: van Zeijts;Johannes
org: Jefferson Lab.
email;internet: johannes@jlab.org
x-mozilla-cpt: ;0
x-mozilla-html: TRUE
version: 2.1
end: vcard

--------------10453629BE48FD48C848EA97--