EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: CA Repeater: bind test err was "The operation completed successfully. "
From: "J. Lewis Muir" <[email protected]>
To: EPICS Tech-Talk <[email protected]>
Date: Tue, 10 Feb 2015 15:51:12 -0600
On 2/10/15 2:48 PM, Andrew Johnson wrote:
> I have implemented this change in the attached patch. Unfortunately
> the libCom osiSock.h interface didn't provide a way to convert
> an arbitrary socket error number into a string, so I also had to
> extend the API to add that functionality. Luckily there are only 2
> implementations since Windows is the only OS that doesn't use errno
> and strerror() for this.
>
> This patch will not fix the original cause of Lewis' error from the
> repeater, but it will at least result in the correct message being
> displayed for it. If one of you could test this patch on Windows I
> will commit the changes and publish it on the Known Problems page.

Hi, Andrew.

Thanks for the patch!  And thanks, Freddie, for reproducing the problem
and suggesting a fix!

I tried the patch, and it works!  I no longer get that bogus error
message.

I actually don't get *any* error message now.  That seems different
than what you expected.  But Freddie's hypothesis was: "the bind() in
makeSocket() is failing (as expected) but the subsequent successful call
to epicsSocketDestroy() in the same function is clearing the error code,
hence when the check is made in repeaterClient::verify() rather than
SOCK_EADDRINUSE it is finding 0."  So, if that's what was happening,
there was no real error, and the behavior now after applying your patch
is correct.

This is on Windows 7 using win32-x86 EPICS Base 3.14.12.4 with all Known
Problems patches and your sockerr.patch patch applied.

Thanks much!

Lewis

References:
CA Repeater: bind test err was "The operation completed successfully. " J. Lewis Muir
RE: CA Repeater: bind test err was "The operation completed successfully. " freddie.akeroyd
Re: CA Repeater: bind test err was "The operation completed successfully. " Johnson, Andrew N.
RE: CA Repeater: bind test err was "The operation completed successfully. " freddie.akeroyd
Re: CA Repeater: bind test err was "The operation completed successfully. " Andrew Johnson

Navigate by Date:
Prev: Re: CA Repeater: bind test err was "The operation completed successfully. " Andrew Johnson
Next: can run multiple IOCs on single host? JaeRyong Seo
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: CA Repeater: bind test err was "The operation completed successfully. " Andrew Johnson
Next: announcing pyDevSup Michael Davidsaver
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·