version 1.1.1.2, 2014/06/15 20:20:06
|
version 1.1.1.2.2.1, 2014/06/15 20:22:25
|
Line 272 static int network_server_init(server *srv, buffer *ho
|
Line 272 static int network_server_init(server *srv, buffer *ho
|
log_error_write(srv, __FILE__, __LINE__, "ss", "socketsockopt(SO_REUSEADDR) failed:", strerror(errno)); |
log_error_write(srv, __FILE__, __LINE__, "ss", "socketsockopt(SO_REUSEADDR) failed:", strerror(errno)); |
goto error_free_socket; |
goto error_free_socket; |
} |
} |
|
if(srv_socket->addr.plain.sa_family == AF_INET || srv_socket->addr.plain.sa_family == AF_INET6 ) { |
|
if (setsockopt(srv_socket->fd, IPPROTO_TCP, TCP_NODELAY, &val, sizeof(val)) < 0) { |
|
log_error_write(srv, __FILE__, __LINE__, "ss", "socketsockopt failed:", strerror(errno)); |
|
goto error_free_socket; |
|
} |
|
} |
|
|
switch(srv_socket->addr.plain.sa_family) { |
switch(srv_socket->addr.plain.sa_family) { |
#ifdef HAVE_IPV6 |
#ifdef HAVE_IPV6 |