Re: Back to the future.

Kyle Moffett
2007-05-07T03:34:23Z

On May 06, 2007, at 22:13:51, David Lang wrote:
> anyone who is doing a hibernate or suspend who expect all the
> network connections to be working afterwords is dreaming or
> smokeing something.
>
> this is just another way that the failure can show up.
>
> in fact, I would say that it would probalby be a nice thing to do
> for intervening firewalls and external servers if a suspend closed
> all external TCP connections rather then leaving them dangling
> (eating up resources until they time out)
>
> if you software can't tolorate the network connection going away on
> you it will have problems in normal operation anyway, let alone
> when you suspend/hibernate your machine.

Yeah, for suspend-to-ram+resume and for snapshot+restore you probably
want userspace to support some kind of initscript-like mechanism
which is triggered by the lid-switch or something before calling into
the kernel. That way it can close network connections mostly-nicely
and down network interfaces before suspending, then re-run DHCP/
802.11/whatever configuration after resume/restore. That might not
be a bad place to handle NFS mounts and such too.

Cheers,
Kyle Moffett