Skip to content

Commit 78d8cce

Browse files
authored
Set timeout to None for CA connection to get around PVs not existing before forwarder config message is received
1 parent a0b63ec commit 78d8cce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

forwarder/update_handlers/ca_update_handler.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ def __init__(
5858
(self._pv,) = context.get_pvs(
5959
pv_name, connection_state_callback=self._connection_state_callback
6060
)
61+
# This is needed for the case when the PV doesn't exist before it has been added
62+
# ie. if a gateway has not yet been configured.
63+
# None means no timeout - it will eventually connect.
64+
self._pv.timeout = None
6165
# Subscribe with "data_type='time'" to get timestamp and alarm fields
6266
sub = self._pv.subscribe(data_type="time")
6367
sub.add_callback(self._monitor_callback)

0 commit comments

Comments
 (0)