use new evutil_make_listen_socket_reuseable() in http.c

svn:r1103
This commit is contained in:
Nick Mathewson 2009-02-10 19:38:14 +00:00
parent c7b2f8fdc9
commit deb2a1210b

6
http.c
View File

@ -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);