public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* [QUESTION] How to reset TCP connections when resuming system from disk/ram
@ 2008-06-01 21:26 Maxim Levitsky
  2008-06-04 14:59 ` Pavel Machek
  2008-06-04 15:41 ` Maxim Levitsky
  0 siblings, 2 replies; 6+ messages in thread
From: Maxim Levitsky @ 2008-06-01 21:26 UTC (permalink / raw)
  To: pm list

Hi,

Thanks to your effort, the suspend to ram/disk works flawlessly on my
desktop system.

But I still have rather small, but annoying problem, that system doesn't
understands that a long suspend cycle was done, and still waits for long closed
TCP connections.

I remember there was a patch to close all TCP connections on suspend, but it was rejected
due to the fact that TCP sessions can live through short suspend/resume cycles.

What can you suggest here?
Is there a tool to close all TCP connections?

I noticed that sockets aren't dependent on network drivers, 
so even removing network driver doesn't close them.
( I guess that it is possible for TCP session to migrate from one to another
network hardware too)


Another thing I want to know, is this possible to set socket timeout
and how? 

(There is a settings page for that in KDE, but I don't yet know what this changes,
a KDE specific settings or not)

I want something CLI based.


Btw, I recently bought an acer laptop (5720G), and there are few suspend/resume issues,
namely:

*attempt to do a second suspend to ram freezes the system hard on resume.
for example this works:

suspend to ram
suspend to disk
suspend to ram
suspend to disk

but this doesn't

suspend to ram
suspend to ram

Best regards,
	Maxim Levitsky

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-06-05 21:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-01 21:26 [QUESTION] How to reset TCP connections when resuming system from disk/ram Maxim Levitsky
2008-06-04 14:59 ` Pavel Machek
2008-06-05 21:44   ` Maxim Levitsky
2008-06-04 15:41 ` Maxim Levitsky
2008-06-04 18:54   ` Alan Stern
2008-06-04 20:38     ` Maxim Levitsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox