Commit 8865c5c7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Also set SO_REUSEADDR here

parent d5d02415
......@@ -423,6 +423,8 @@ int __net_Accept( vlc_object_t *p_this, int *pi_fd, mtime_t i_wait )
}
else
{
const int yes = 1;
setsockopt( i_fd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof( yes ));
#ifdef FD_CLOEXEC
fcntl( i_fd, F_SETFD, FD_CLOEXEC );
#endif
......
Supports Markdown
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