From: Maxim Levitsky <maximlevitsky@gmail.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: pm list <linux-pm@lists.linux-foundation.org>
Subject: Re: [QUESTION] How to reset TCP connections when resuming system from disk/ram
Date: Wed, 04 Jun 2008 23:38:59 +0300 [thread overview]
Message-ID: <4846FD63.9030208@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0806041452590.4505-100000@iolanthe.rowland.org>
Alan Stern wrote:
> On Wed, 4 Jun 2008, Maxim Levitsky wrote:
>
>> Maxim Levitsky wrote:
>>> 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 don't know the answer to your question.
>
> However you should note that closing all TCP connections is overkill.
> It's quite possible that some processes on your computer are
> communicating among themselves using TCP; there's no reason those
> connections should be killed.
Thanks a lot for the pointer, I agree completely
I guess such connections can be filtered by filtering out
connections with all local addresses (localhost, and each nic address)
When I have time I will probably write such a tool
(I need to look at /proc/net/.. for list of open TCP sockets,
and then I need to send RST to both ends of those sockets).
I can even parse netstat output for list of open sockets.
>
> Alan Stern
>
Thanks a lot,
Best regards,
Maxim Levitsky
prev parent reply other threads:[~2008-06-04 20:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4846FD63.9030208@gmail.com \
--to=maximlevitsky@gmail.com \
--cc=linux-pm@lists.linux-foundation.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.