mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 11:53:00 -04:00
use new evutil_make_listen_socket_reuseable() in http.c
svn:r1103
This commit is contained in:
parent
c7b2f8fdc9
commit
deb2a1210b
6
http.c
6
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user