host name is returned empty for a brief window in time after the channel connects
Bug #541342 reported by
Jeff Hill
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Fix Released
|
Wishlist
|
Jeff Hill |
Bug Description
From Ernest:
> I thought cainfo would return the host:
>
> [iocegr@
> PCAV:IN20:365:TEMP2
> State: connected
> Host:
> Access: read, write
> Data type: DBR_DOUBLE (native: DBF_DOUBLE)
> Element count: 1
>
>
> probe returns the host of the PV just fine.
>
> I tried this with EPICS R3.14.8.2 and also EPICS R3.14.9 as well.
>
Original Mantis Bug: mantis-312
http://
To post a comment you must log in.
I reproduced this here (on windows using excas as the server). I had some mixed results. See below. I'm not certain what is going on, but here is a possible explanation. In R3.14 all DNS queries are handled by an independent thread, and their results are returned asynchronously via callbacks. This makes CA immune to lockups when DNS goes down. I suspect that the host name is set to empty until this query comes back. So if you ask right away after the channel connects you get an empty host name. This could possibly be improved by copying the dotted IP address into the host name string - to be used until the dns name comes back.