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: asyn timeout
From: Mark Rivers <[email protected]>
To: "'Eric Norum'" <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Mon, 19 Oct 2015 16:01:48 +0000

Ø  ASYN already provides a timeout mechanism with the option of tearing down the TCP connection on timeouts.

 

But that requires an additional delay in detecting that the socket has indeed disconnected by waiting for a write or read operation to time out.  And what if the remote end is sending unsolicited messages at some unknown interval?  It would then be up to the remote end to determine that a write failed and tear down the socket and reopen it? Could there be state information lost when a socket is closed and then re-opened?  It seems cleaner to let the underlying OS implementation optionally take care of sending keepalive packets to prevent the types of problems Pedro is seeing?

 

Mark

 

 

From: Eric Norum [mailto:[email protected]]
Sent: Monday, October 19, 2015 10:53 AM
To: Mark Rivers
Cc: Torsten bögershaus; Pedro Gigoux; [email protected]
Subject: Re: asyn timeout

 

What’s use case for SO_KEEPALIVE?  ASYN already provides a timeout mechanism with the option of tearing down the TCP connection on timeouts.

 

On Oct 19, 2015, at 8:46 AM, Mark Rivers <[email protected]> wrote:

 

Should asyn be setting SO_KEEPALIVE by default?  Perhaps drvAsynIPPort should implement the asynOption interface and we could control things like this over that interface, like drvAsynSerialPort does for baud rate, stop bits, etc.?

 

-- 
Eric Norum
[email protected]

 


References:
asyn timeout Pedro Gigoux
Re: asyn timeout Torsten bögershaus
RE: asyn timeout Mark Rivers
Re: asyn timeout Eric Norum

Navigate by Date:
Prev: Re: asyn timeout Eric Norum
Next: RE: epicsTime_localtime() currently reports daylight saving time incorrectly on Windows freddie.akeroyd
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: asyn timeout Eric Norum
Next: Re: asyn timeout Pedro Gigoux
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 ·