From deb2a1210bffcf9a902ae449d7d79bb29c617f4a Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 10 Feb 2009 19:38:14 +0000 Subject: [PATCH] use new evutil_make_listen_socket_reuseable() in http.c svn:r1103 --- http.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/http.c b/http.c index abee38e3..5349c717 100644 --- a/http.c +++ b/http.c @@ -2887,10 +2887,8 @@ bind_socket_ai(struct addrinfo *ai, int reuse) #endif setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, (void *)&on, sizeof(on)); - if (reuse) { - setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, - (void *)&on, sizeof(on)); - } + if (reuse) + evutil_make_listen_socket_reuseable(fd); if (ai != NULL) { r = bind(fd, ai->ai_addr, ai->ai_addrlen);