on cygwin, epicsSocketEnablePortUseForDatagramFanout: unable to set SO_REUSEADDR?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Fix Released
|
Wishlist
|
Jeff Hill |
Bug Description
This is cygwin feature - a situation where cygwin doesnt behave like posix. On posix we have the attached. To fix this someone will need to add an implementation of epicsSocketEnab
/*
* SO_REUSEPORT is not in POSIX
*/
epicsShareFunc void epicsShareAPI
epicsSocket
{
int yes = true;
int status;
status = setsockopt ( s, SOL_SOCKET, SO_REUSEADDR,
(char *) & yes, sizeof ( yes ) );
if ( status < 0 ) {
"unable to set SO_REUSEADDR\n");
}
}
Original Mantis Bug: mantis-304
http://
The message would be emitted by epicsSocketEnab leAddressReuseD uringTimeWaitSt ate not by epicsSocketEnab leAddressUseFor DatagramFanout on WINSOCK