[vlc-devel] [PATCH] Fix infinite loop in the telnet interface

Adrien Grand jpountz at videolan.org
Wed Feb 25 05:20:23 CET 2009


When I close the telnet session client-side (by killing the telnet
process for example), VLC (0.9.x and 1.0.0-git) goes into an infinite
loop. It seems to be because recv() instantly returns 0 and errno is set
to EAGAIN, which is not handled by the if clause which tries to detect
the telnet client connections to drop.

The attached patch if a fix proposal for this issue.

Best regards,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Avoid-infinite-loop-when-the-telnet-session-is-close.patch
Type: text/x-diff
Size: 831 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090225/c29c3cfd/attachment.patch>

More information about the vlc-devel mailing list