summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-09-20 12:40:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:54 -0500
commit03cf36ac9c7ed1f3b8d771b8a795c97ec856b55c (patch)
treed9b8114731674f7beacf0a6407ea0e6e2be1cedc
parent7d06a06584e5163b69f712e38dc46afc2668389c (diff)
downloadsamba-03cf36ac9c7ed1f3b8d771b8a795c97ec856b55c.tar.gz
samba-03cf36ac9c7ed1f3b8d771b8a795c97ec856b55c.tar.bz2
samba-03cf36ac9c7ed1f3b8d771b8a795c97ec856b55c.zip
r2448: use SO_REUSEADDR=1 for the server
metze (This used to be commit e20cfb705f5ba0bef095a969f097a510bf314995)
-rw-r--r--source4/smbd/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/smbd/service.c b/source4/smbd/service.c
index 22d8f23765..323bc62a85 100644
--- a/source4/smbd/service.c
+++ b/source4/smbd/service.c
@@ -130,7 +130,7 @@ struct server_socket *service_setup_socket(struct server_service *service,
}
/* ready to listen */
- status = socket_set_option(socket_ctx, "SO_KEEPALIVE", NULL);
+ status = socket_set_option(socket_ctx, "SO_KEEPALIVE SO_REUSEADDR=1", NULL);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("socket_set_option(socket_ctx, SO_KEEPALIVE, NULL): %s\n",
nt_errstr(status)));