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: osiSockTest fail on WIN32
From: Michael Davidsaver via Core-talk <core-talk at aps.anl.gov>
To: Freddie Akeroyd - STFC UKRI <freddie.akeroyd at stfc.ac.uk>
Cc: "EPICS core-talk \(core-talk at aps.anl.gov\)" <core-talk at aps.anl.gov>
Date: Thu, 1 Jul 2021 08:45:18 -0700
On 6/27/21 2:38 PM, Freddie Akeroyd - STFC UKRI via Core-talk wrote:
> Hi,
> 
>  
> 
> I’m getting osiSockTest failures with epics 7 when I run it locally on my windows desktop. The issue seems to be that in udpSockFanoutTestRx() a UDP packet is picked up from the main network (looks to be from our gateway on the same subnet) and this packet is too big for the buffer passed to recvfrom()  resulting in recvfrom() returning WSAEMSGSIZE and the test terminating early.  This can be fixed by either changing the error check to be:
> 
>  
> 
>     if(n<0 && SOCKERRNO != SOCK_EMSGSIZE) {

I've committed a similar fix which will retry recvfrom() instead of processing
a truncated packet, which will never be the desired one.

https://github.com/epics-base/epics-base/commit/e2d3b9a246d43495b5acaf3276d32de66b0db9b1#diff-e2d4c9066a589e7f761c71e5170648cf32efb6c8f6dcb8b59bf605c00493d917R246


> (with SOCK_EMSGSIZE= WSAEMSGSIZE on WIN32, EMSGSIZE elsewhere) or by increasing the size of the body part of the CASearch  structure – it looks like the entire structure would currently need to be at least 1024 bytes for packets on our network.
> 
>  
> 
> Regards,
> 
>  
> 
> Freddie
> 
>  
> 
> 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.
> 


References:
osiSockTest fail on WIN32 Freddie Akeroyd - STFC UKRI via Core-talk

Navigate by Date:
Prev: [Bug 1934169] Re: initHookName out of sync mdavidsaver via Core-talk
Next: Build failed in Jenkins: EPICS-7 #362 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: osiSockTest fail on WIN32 Michael Davidsaver via Core-talk
Next: [Bug 1682185] Re: Windows build failure in dbUnitTest.c Andrew Johnson 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, 01 Jul 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·