Don't use SO_REUSEADDR on Win32 platforms
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 25 Apr 2014 16:47:08 +0000 (17:47 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 29 Apr 2014 10:30:32 +0000 (11:30 +0100)
commit37697d828b12536638378be2f5cc54aaaee5fa29
tree8c116e74d0f1d2ecb1ae89a849cfa9ce45af282b
parent837154a151ce056caba73e60c641a705136fb965
Don't use SO_REUSEADDR on Win32 platforms

SO_REUSEADDR on Windows is actually akin to SO_REUSEPORT
on Linux/BSD. ie it allows 2 apps to listen to the same
port at once. Thus we must not set it on Win32 platforms

See http://msdn.microsoft.com/en-us/library/windows/desktop/ms740621.aspx

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/libvirt_private.syms
src/rpc/virnetsocket.c
src/util/virportallocator.c
src/util/virutil.c
src/util/virutil.h