From 86267d94ad5c552fddc9965e9d2f86f6f77989e2 Mon Sep 17 00:00:00 2001 From: Gabriel Gritsch Date: Sat, 22 Feb 2014 18:00:28 +0800 Subject: [PATCH] use SO_REUSEADDR on windows since supposedly ok now --- lib/libwebsockets.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c index 74367584..5cfcfc50 100644 --- a/lib/libwebsockets.c +++ b/lib/libwebsockets.c @@ -2336,17 +2336,11 @@ libwebsocket_create_context(struct lws_context_creation_info *info) goto bail; } -#ifndef WIN32 /* * allow us to restart even if old sockets in TIME_WAIT - * (REUSEADDR on Unix means, "don't hang on to this - * address after the listener is closed." On Windows, though, - * it means "don't keep other processes from binding to - * this address while we're using it) */ setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, (const void *)&opt, sizeof(opt)); -#endif /* Disable Nagle */ opt = 1;