[vlc-devel] [PATCH] network/io.c: minor fix

Frederic YHUEL fyhuel at viotech.net
Wed Apr 4 17:00:01 CEST 2012


2012/4/4 Rémi Denis-Courmont <remi at remlab.net>:
> Le mercredi 4 avril 2012 15:11:58 Frédéric Yhuel, vous avez écrit :
>> Unlike POLLERR, POLLHUP, and POLLNVAL, POLLRDHUP is not set by default.
>> See http://man7.org/linux/man-pages/man2/poll.2.html
>
> Merged, thanks. Did you hit any actual bug, or is this just an accidental code
> review?
>

This is related to my "getting stuck in net_Read" problem. Sadly it
did not solve my problem. While I'm able to see that the patch works,
net_Read() was still getting stuck in poll() from time to time. Like I
said in an other mail, installing another kernel strangely improved
the situation.

Also, what is weird, is that my module can call net_Read() again,
after it have been "interrupted by a POLLRDHUP", if I may say so,, and
that *without reconnection*. Maybe it's normal, but since POLLRDHUP
means "Stream socket peer closed connection", I don't really
understand...

-- 
Frédéric



More information about the vlc-devel mailing list