net_Read(): truly ignore POLLRDHUP
The Linux TCP stack sets POLLRDHUP as soon as the FIN packet is
received. If there is some unread data in the receive buffer, it would
be discarded. Then upper layer protocol typically fail.
This can happen with HTTP/1.1 "Connection: close" or with HTTP/1.0
in particular.
Pointed-out-by: Jean-Baptiste Kempf <jb@videolan.org>
Showing
Please register or sign in to comment