Loading tests/server/sws.c +8 −4 Original line number Diff line number Diff line Loading @@ -71,6 +71,11 @@ #define CURL_SWS_FORK_ENABLED #endif #ifdef ENABLE_IPV6 static bool use_ipv6 = FALSE; #endif const char *ipv_inuse = "IPv4"; #define REQBUFSIZ 150000 #define REQBUFSIZ_TXT "149999" Loading Loading @@ -858,7 +863,6 @@ static int send_doc(curl_socket_t sock, struct httprequest *req) return 0; } static bool use_ipv6=FALSE; int main(int argc, char *argv[]) { Loading Loading @@ -900,6 +904,7 @@ int main(int argc, char *argv[]) } else if(!strcmp("--ipv6", argv[arg])) { #ifdef ENABLE_IPV6 ipv_inuse = "IPv6"; use_ipv6 = TRUE; #endif arg++; Loading Loading @@ -986,8 +991,7 @@ int main(int argc, char *argv[]) return 1; } logmsg("Running IPv%d version on port %hu", (use_ipv6?6:4), port); logmsg("Running %s version on port %d", ipv_inuse, (int)port); /* start accepting connections */ rc = listen(sock, 5); Loading Loading
tests/server/sws.c +8 −4 Original line number Diff line number Diff line Loading @@ -71,6 +71,11 @@ #define CURL_SWS_FORK_ENABLED #endif #ifdef ENABLE_IPV6 static bool use_ipv6 = FALSE; #endif const char *ipv_inuse = "IPv4"; #define REQBUFSIZ 150000 #define REQBUFSIZ_TXT "149999" Loading Loading @@ -858,7 +863,6 @@ static int send_doc(curl_socket_t sock, struct httprequest *req) return 0; } static bool use_ipv6=FALSE; int main(int argc, char *argv[]) { Loading Loading @@ -900,6 +904,7 @@ int main(int argc, char *argv[]) } else if(!strcmp("--ipv6", argv[arg])) { #ifdef ENABLE_IPV6 ipv_inuse = "IPv6"; use_ipv6 = TRUE; #endif arg++; Loading Loading @@ -986,8 +991,7 @@ int main(int argc, char *argv[]) return 1; } logmsg("Running IPv%d version on port %hu", (use_ipv6?6:4), port); logmsg("Running %s version on port %d", ipv_inuse, (int)port); /* start accepting connections */ rc = listen(sock, 5); Loading