[MPlayer-dev-eng] [PATCH] Fw: [Bug 673] New: Network timeout
Roberto Togni
rxt at rtogni.it
Sat Dec 16 00:54:35 CET 2006
Got this from bugzilla, can anybody comment on the patch, expecially
about portability to non-linux systems?
Patch is untested by me, if the solution is ok I'll rework it.
Ciao,
Roberto
Begin forwarded message:
Date: Wed, 6 Dec 2006 12:25:19 +0100 (CET)
From: bugzilla-daemon at bugzilla.mplayerhq.hu
To: r_togni at tiscali.it
Subject: [Bug 673] New: Network timeout
http://bugzilla.mplayerhq.hu/show_bug.cgi?id=673
Summary: Network timeout
Product: MPlayer
Version: HEAD
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: normal
Component: streaming
AssignedTo: r_togni at tiscali.it
ReportedBy: nbk at sitadelle.com
When playing a stream, MPlayer can hang an undefined amount of time
when there's a network error. This could happen for various reasons:
the stream server crashes without closing the socket, the network
connection hangs up, the user walks outside wifi area, etc.
For example you can reproduce the problem when you open a stream URL
with MPlayer, and after the connection is established and the video
is playing, you run "iptables" to drop the incoming packets from
the server.
The easiest solution to this problem is to add a timeout on the
socket with setsockopt(2). Therefore instead of being stuck in
an I/O operation, MPlayer will get an error and can go on its
execution. (like playing the next item in the playlist)
The fix is really simple so I hope it could be merged in the
repository.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: net_tout_#673.diff
Type: text/x-patch
Size: 1291 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20061216/edf364b3/attachment.bin>
More information about the MPlayer-dev-eng
mailing list