Commit 940d271a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Work-around for Winsock

parent df3a1461
......@@ -416,11 +416,13 @@ int __net_Accept( vlc_object_t *p_this, int *pi_fd, mtime_t i_wait )
if( i_val < 0 )
msg_Err( p_this, "accept failed (%s)",
net_strerror( net_errno ) );
#ifndef WIN32
else if( i_val >= FD_SETSIZE )
{
net_Close( i_val ); /* avoid future overflows in FD_SET */
msg_Err( p_this, "accept failed (too many sockets opened)" );
}
#endif
else
{
const int yes = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment