2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 <2021> 2022 2023 2024 | Index | 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 <2021> 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | osiSockTest fail on WIN32 |
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, 27 Jun 2021 21:38:51 +0000 |
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) { (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. |