CA beacon socket disconnect message (benign) on windows if no network interface
Bug #541280 reported by
Jeff Hill
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Fix Released
|
Wishlist
|
Andrew Johnson |
Bug Description
If the windows host has no valid network interfaces
we see this message.
..online_notify.c: CA beacon socket disconnect error was "A socket operation wa
s attempted to an unreachable host. "
Original Mantis Bug: mantis-246
http://
To post a comment you must log in.
maybe this code in rsrv should not execute if beacon address list is empty? Need to run some more tests.
{
osiSockAdd r sockAddr;
sockAddr. ia.sin_ family = AF_INET;
sockAddr. ia.sin_ addr.s_ addr = INADDR_NONE;
sockAddr. ia.sin_ port = htons ( port );
char sockErrBuf[64];
epicsSocketCo nvertErrnoToStr ing ( sockErrBuf, sizeof ( sockErrBuf ) );
errlogPrintf ( "%s: CA beacon socket disconnect error was "%s"\n",
_ _FILE__ , sockErrBuf );
/*
* Connect to INADDR_NONE because a UDP connect to AF_UNSPEC
* only works with modern IP kernel.
* INADDR_NONE can never be a source address and therefore no
* messages can be received.
*/
memset ( &sockAddr, 0, sizeof ( sockAddr ) );
status = connect ( sock,
& sockAddr.sa, sizeof ( sockAddr.sa ) );
if ( status < 0 ) {
}
}