Re: Video connection timeout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/13/11 16:58, jobhunts02@xxxxxxx 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. . . .
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux