diff options
author | marha <marha@users.sourceforge.net> | 2012-05-02 10:18:57 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-05-02 10:18:57 +0200 |
commit | 4516768ad91d5dc0ad7d23b53e089dbe116244cd (patch) | |
tree | 2df94415fc8558f9278014cc626fbee1f707b539 /xorg-server/os/xstrans.c | |
parent | b93a9b44b79073494f2840a13aa58a8972e3dd22 (diff) | |
download | vcxsrv-4516768ad91d5dc0ad7d23b53e089dbe116244cd.tar.gz vcxsrv-4516768ad91d5dc0ad7d23b53e089dbe116244cd.tar.bz2 vcxsrv-4516768ad91d5dc0ad7d23b53e089dbe116244cd.zip |
Do not try to bind the same address twice
Do not retry to bind when it fails, to speed up searching for a free
listening display port
Diffstat (limited to 'xorg-server/os/xstrans.c')
-rw-r--r-- | xorg-server/os/xstrans.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xorg-server/os/xstrans.c b/xorg-server/os/xstrans.c index b902dc41b..cdc8f8eec 100644 --- a/xorg-server/os/xstrans.c +++ b/xorg-server/os/xstrans.c @@ -15,5 +15,9 @@ _X_ATTRIBUTE_PRINTF(1, 2);*/ #ifndef TCPCONN #define TCPCONN #endif +#ifdef WIN32 +#undef SO_REUSEADDR +#define SO_BINDRETRYCOUNT 0 // do not try to bind again when it fails, this will speed up searching for a free listening port +#endif #include <X11/Xtrans/transport.c> |