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: <[email protected]>
To: <[email protected]>, <[email protected]>
Date: Tue, 10 Feb 2015 10:29:19 +0000
Hi Lewis,

I think 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.  One way to fix it might be to change makeSocket() to make a copy of any socket error code and then return that (or 0 on success) rather than true/false

Regards,

Freddie

> -----Original Message-----
> From: [email protected] [mailto:tech-talk-
> [email protected]] On Behalf Of J. Lewis Muir
> Sent: 09 February 2015 22:13
> To: EPICS Tech-Talk
> Subject: CA Repeater: bind test err was "The operation completed
> successfully. "
> 
> Hello.
> 
> When I run caRepeater.exe from a command prompt in Windows 7 and then
> run camonitor.exe in another command prompt for a PV (hosted on an IOC
> on a different machine) of type DBF_LONG that is updating at about 10
> Hz, the caRepeater.exe process prints the following message on the
> console:
> 
> ===
> CA Repeater: bind test err was "The operation completed successfully. "
> ===
> 
> The camonitor.exe program seems to continue to run correctly.
> 
> Does anyone know how to fix this?
> 
> I looked briefly at src/ca/repeater.cpp where this error is printed,
> and I changed the fprintf call to also print SOCKERRNO using the format
> "%d", and it prints 0.
> 
> This is using win32-x86 EPICS Base 3.14.12.4 (with the Known Problems
> patches applied) on Windows 7.
> 
> Thank you!
> 
> Lewis


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

Navigate by Date:
Prev: Re: epicsRingPointer.h error C2664: 'delete' : cannot convert parameter J. Lewis Muir
Next: Re: medm3.1.8 linker problem Dirk Zimoch
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: CA Repeater: bind test err was "The operation completed successfully. " J. Lewis Muir
Next: Re: CA Repeater: bind test err was "The operation completed successfully. " Johnson, Andrew N.
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 ·