netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Grant Taylor <gtaylor@riverviewtech.net>
To: Mail List - Netfilter <netfilter@vger.kernel.org>
Subject: Re: Video connection timeout
Date: Fri, 13 May 2011 17:10:25 -0500	[thread overview]
Message-ID: <4DCDAC51.4060303@riverviewtech.net> (raw)
In-Reply-To: <6C249D4B-8247-4FD1-AD60-73E596244B57@aol.com>

On 05/13/11 16:58, jobhunts02@aol.com wrote:
> When I have video running and the video stops, I see that the
> connection is destroyed in about 5 seconds, which is what I want.
>
> If, rather than stopping the video, I pull the plug, I have seen it
> take 350 and 380 seconds before the connection is destroyed.

Are you talking about how long it takes for the connection / socket to 
close on the system?  (I.e. netstat / ss show the connection.)

(For the sake of conversation, I'm assuming that I'm correct.)

> Why is there such a large difference in the time to destroy a video
> connection between stopping the video and pulling the plug on it?

If a video finishes it's playback and the player realizes that the video 
stream is finished, the player can issue the proper sequence to close 
the connection.  Where as if the player is in the middle of a stream and 
the data stops, the player will likely wait for a timeout (coded in the 
player) before giving up and aborting the playback.

> How can I shorten the time for the connection to get destroyed when
> pulling the plug?--

I don't know that there is much that you can do other than trying to 
close the connection (TCP Reset / ICMP Host Unreachable / etc.) to 
artificially cause the player to terminate playback early.



Grant. . . .

      reply	other threads:[~2011-05-13 22:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-13 21:58 Video connection timeout jobhunts02
2011-05-13 22:10 ` Grant Taylor [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=4DCDAC51.4060303@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --cc=netfilter@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).