EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: EPICS Base 3.15.8: Name resolution requests directed to non-existing hosts block CA Server
From: "Johnson, Andrew N. via Core-talk" <core-talk at aps.anl.gov>
To: Michael Davidsaver <mdavidsaver at gmail.com>
Cc: EPICS core-talk <core-talk at aps.anl.gov>
Date: Fri, 4 Jun 2021 15:31:46 +0000
On Jun 4, 2021, at 8:24 AM, Michael Davidsaver via Core-talk <core-talk at aps.anl.gov> wrote:

On 6/4/21 1:50 AM, Goetz Pfeiffer via Core-talk wrote:
We provide the "MSG_DONTWAIT" flag to the "sendto" call. By this, sendto never blocks even if internal
UDP buffers are full.

I have added a patch file for this to this e-mail.

I don't see any issue with this change, though I would format it as:

#ifndef MSG_DONTWAIT
#  define MSG_DONTWAIT (0)
#endif

Both VxWorks 5.5 and MacOS define MSG_DONTWAIT in sys/socket.h but in the MacOSX SDK it's inside this conditional:

#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
#define MSG_DONTWAIT    0x80            /* this message should be nonblocking */

I doubt that _POSIX_C_SOURCE is defined so I think the flag should be available there, but Michael’s conditional is a good idea anyway.

- Andrew

-- 
Complexity comes for free, simplicity you have to work for.


Replies:
RE: EPICS Base 3.15.8: Name resolution requests directed to non-existing hosts block CA Server Freddie Akeroyd - STFC UKRI via Core-talk
References:
EPICS Base 3.15.8: Name resolution requests directed to non-existing hosts block CA Server Goetz Pfeiffer via Core-talk
Re: EPICS Base 3.15.8: Name resolution requests directed to non-existing hosts block CA Server Michael Davidsaver via Core-talk

Navigate by Date:
Prev: Re: EPICS Base 3.15.8: Name resolution requests directed to non-existing hosts block CA Server Michael Davidsaver via Core-talk
Next: RE: EPICS Base 3.15.8: Name resolution requests directed to non-existing hosts block CA Server Freddie Akeroyd - STFC UKRI via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: EPICS Base 3.15.8: Name resolution requests directed to non-existing hosts block CA Server Michael Davidsaver via Core-talk
Next: RE: EPICS Base 3.15.8: Name resolution requests directed to non-existing hosts block CA Server Freddie Akeroyd - STFC UKRI via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 05 Jun 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·