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: Freddie Akeroyd - STFC UKRI via Core-talk <core-talk at aps.anl.gov>
To: "EPICS core-talk (core-talk at aps.anl.gov)" <core-talk at aps.anl.gov>
Date: Sun, 6 Jun 2021 00:05:02 +0000

The currently observed behaviour may be caused by an ARP lookup https://stackoverflow.com/questions/4165174/when-does-a-udp-sendto-block

 

From: Core-talk <core-talk-bounces at aps.anl.gov> On Behalf Of Freddie Akeroyd - STFC UKRI via Core-talk
Sent: 05 June 2021 13:40
To: EPICS core-talk (core-talk at aps.anl.gov) <core-talk at aps.anl.gov>
Subject: RE: EPICS Base 3.15.8: Name resolution requests directed to non-existing hosts block CA Server

 

Windows doesn’t look to provide MSG_DONTWAIT, you would probably need to set the socket into non-blocking mode with ioctlsocket() to get the equivalent behaviour, but that may cause undesirable consequences elsewhere (not looked);  however temporarily disabling/enabling blocking mode just around the call may be possible.

 

Freddie

 

From: Core-talk <core-talk-bounces at aps.anl.gov> On Behalf Of Johnson, Andrew N. via Core-talk
Sent: 04 June 2021 16:32
To: Michael Davidsaver <mdavidsaver at gmail.com>
Cc: EPICS core-talk <core-talk at aps.anl.gov>
Subject: Re: EPICS Base 3.15.8: Name resolution requests directed to non-existing hosts block CA Server

 

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.

 

This email and any attachments are intended solely for the use of the named recipients. If you are not the intended recipient you must not use, disclose, copy or distribute this email or any of its attachments and should notify the sender immediately and delete this email from your system. UK Research and Innovation (UKRI) has taken every reasonable precaution to minimise risk of this email or any attachments containing viruses or malware but the recipient should carry out its own virus and malware checks before opening the attachments. UKRI does not accept any liability for any losses or damages which the recipient may sustain due to presence of any viruses. Opinions, conclusions or other information in this message and attachments that are not related directly to UKRI business are solely those of the author and do not represent the views of UKRI.


Replies:
Re: EPICS Base 3.15.8: Name resolution requests directed to non-existing hosts block CA Server Goetz Pfeiffer 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
Re: EPICS Base 3.15.8: Name resolution requests directed to non-existing hosts block CA Server Johnson, Andrew N. via Core-talk
RE: EPICS Base 3.15.8: Name resolution requests directed to non-existing hosts block CA Server Freddie Akeroyd - STFC UKRI via Core-talk

Navigate by Date:
Prev: Build failed in Jenkins: EPICS-7 #352 Jenkins EPICS PSI via Core-talk
Next: Build failed in Jenkins: EPICS-3.14 #1056 Jenkins EPICS PSI 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 Freddie Akeroyd - STFC UKRI via Core-talk
Next: Re: EPICS Base 3.15.8: Name resolution requests directed to non-existing hosts block CA Server Goetz Pfeiffer 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, 07 Jun 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·