Re: C/R without "leaks"

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oren Laadan
Date: Thursday, April 16, 2009 - 11:39 am

Chris Friesen wrote:

Any connection in that case is, of course, lost, and it's up to the
application to do something about it. If the application relies on
the state of the connection, it will have to give up (e.g. sshd, and
ssh, die).

However, there are many application that can withstand connection
lost without crashing. They simply retry (web browser, irc client,
db clients). With time, there may be more applications that are
'c/r-aware'.

Moreover, in some cases you could, on restart, use a wrapper to
create a new connection to somewhere (*), then ask restart(2) to
use that socket instead of the original, such that from the user
point of view things continue to work well, transparently.

(*) that somewhere, could be the original peer, or another server,
if it has a way to somehow continue a cut connection, or a special
wrapper server that you right for that purpose.

Oren.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Creating tasks on restart: userspace vs kernel, Oren Laadan, (Mon Apr 13, 8:43 pm)
Re: Creating tasks on restart: userspace vs kernel, Ingo Molnar, (Tue Apr 14, 2:59 am)
Re: Creating tasks on restart: userspace vs kernel, Oren Laadan, (Tue Apr 14, 7:53 am)
Re: Creating tasks on restart: userspace vs kernel, Serge E. Hallyn, (Tue Apr 14, 9:16 am)
Re: Creating tasks on restart: userspace vs kernel, Alexey Dobriyan, (Tue Apr 14, 9:36 am)
Re: Creating tasks on restart: userspace vs kernel, Alexey Dobriyan, (Tue Apr 14, 9:46 am)
Re: Creating tasks on restart: userspace vs kernel, Oren Laadan, (Tue Apr 14, 11:40 am)
Re: Creating tasks on restart: userspace vs kernel, Alexey Dobriyan, (Tue Apr 14, 12:59 pm)
Re: Creating tasks on restart: userspace vs kernel, Oren Laadan, (Tue Apr 14, 1:10 pm)
Re: Creating tasks on restart: userspace vs kernel, Alexey Dobriyan, (Tue Apr 14, 2:01 pm)
Re: C/R without "leaks", Oren Laadan, (Wed Apr 15, 2:38 pm)
Re: C/R without "leaks", Chris Friesen, (Thu Apr 16, 11:10 am)
Re: C/R without "leaks", Oren Laadan, (Thu Apr 16, 11:39 am)
Re: C/R without "leaks", Greg Kurz, (Fri Apr 17, 2:15 am)
Re: C/R without "leaks", Oren Laadan, (Fri Apr 17, 2:48 am)
Re: C/R without "leaks", Greg Kurz, (Fri Apr 17, 5:25 am)
Re: C/R without "leaks", Nathan Lynch, (Tue Apr 21, 5:16 pm)