aboutsummaryrefslogtreecommitdiff
path: root/X11/xtrans/Xtranssock.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-05-02 10:16:27 +0200
committermarha <marha@users.sourceforge.net>2012-05-02 10:16:27 +0200
commit2982c44f1569e229d274150a362df58f17b816d9 (patch)
treeaa54b46c9c918a3ca9aede3b75f60a0edd26e49d /X11/xtrans/Xtranssock.c
parent3d353f31ac1671d1b39c09b1f8d82c8811d3edd6 (diff)
downloadvcxsrv-2982c44f1569e229d274150a362df58f17b816d9.tar.gz
vcxsrv-2982c44f1569e229d274150a362df58f17b816d9.tar.bz2
vcxsrv-2982c44f1569e229d274150a362df58f17b816d9.zip
Added possibility to overrule bind retry count
Diffstat (limited to 'X11/xtrans/Xtranssock.c')
-rw-r--r--X11/xtrans/Xtranssock.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/X11/xtrans/Xtranssock.c b/X11/xtrans/Xtranssock.c
index 3a151ecfe..399130fdf 100644
--- a/X11/xtrans/Xtranssock.c
+++ b/X11/xtrans/Xtranssock.c
@@ -858,6 +858,10 @@ set_sun_path(const char *port, const char *upath, char *path, int abstract)
#ifdef TRANS_SERVER
+#ifndef SO_BINDRETRYCOUNT
+#define SO_BINDRETRYCOUNT 20
+#endif
+
static int
TRANS(SocketCreateListener) (XtransConnInfo ciptr,
struct sockaddr *sockname,
@@ -875,7 +879,7 @@ TRANS(SocketCreateListener) (XtransConnInfo ciptr,
|| Sockettrans2devtab[ciptr->index].family == AF_INET6
#endif
)
- retry = 20;
+ retry = SO_BINDRETRYCOUNT;
else
retry = 0;