diff options
Diffstat (limited to 'networking/httpd.c')
-rw-r--r-- | networking/httpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index 7a9065fcc..feaaa94d5 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -2352,7 +2352,7 @@ static void mini_httpd(int server_socket) | |||
2352 | continue; | 2352 | continue; |
2353 | 2353 | ||
2354 | /* set the KEEPALIVE option to cull dead connections */ | 2354 | /* set the KEEPALIVE option to cull dead connections */ |
2355 | setsockopt(n, SOL_SOCKET, SO_KEEPALIVE, &const_int_1, sizeof(const_int_1)); | 2355 | setsockopt_keepalive(n); |
2356 | 2356 | ||
2357 | if (fork() == 0) { | 2357 | if (fork() == 0) { |
2358 | /* child */ | 2358 | /* child */ |
@@ -2395,7 +2395,7 @@ static void mini_httpd_nommu(int server_socket, int argc, char **argv) | |||
2395 | continue; | 2395 | continue; |
2396 | 2396 | ||
2397 | /* set the KEEPALIVE option to cull dead connections */ | 2397 | /* set the KEEPALIVE option to cull dead connections */ |
2398 | setsockopt(n, SOL_SOCKET, SO_KEEPALIVE, &const_int_1, sizeof(const_int_1)); | 2398 | setsockopt_keepalive(n); |
2399 | 2399 | ||
2400 | if (vfork() == 0) { | 2400 | if (vfork() == 0) { |
2401 | /* child */ | 2401 | /* child */ |