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

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