diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-08-24 12:36:18 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-08-24 16:06:10 +0300 |
commit | 3420745f28705865314aef7138a6a12ef6ec506d (patch) | |
tree | e6ec6632ee66e0518ea4d07698b28f133f292077 /src/microhttpd/daemon.c | |
parent | 7a2a93b4a1cb49b5f8377aa4d8420f24c27ae311 (diff) | |
download | libmicrohttpd-3420745f28705865314aef7138a6a12ef6ec506d.tar.gz libmicrohttpd-3420745f28705865314aef7138a6a12ef6ec506d.zip |
MHD_accept_connection: cosmetics
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index a375152f..4d089759 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -3586,8 +3586,10 @@ MHD_accept_connection (struct MHD_Daemon *daemon) | |||
3586 | would ever be cleared. Instead trying to produce | 3586 | would ever be cleared. Instead trying to produce |
3587 | bit fat ugly warning. */ | 3587 | bit fat ugly warning. */ |
3588 | MHD_DLOG (daemon, | 3588 | MHD_DLOG (daemon, |
3589 | _ ( | 3589 | _ ("Hit process or system resource limit at FIRST " \ |
3590 | "Hit process or system resource limit at FIRST connection. This is really bad as there is no sane way to proceed. Will try busy waiting for system resources to become magically available.\n")); | 3590 | "connection. This is really bad as there is no sane " \ |
3591 | "way to proceed. Will try busy waiting for system " \ | ||
3592 | "resources to become magically available.\n")); | ||
3591 | #endif | 3593 | #endif |
3592 | } | 3594 | } |
3593 | else | 3595 | else |
@@ -3601,8 +3603,9 @@ MHD_accept_connection (struct MHD_Daemon *daemon) | |||
3601 | #endif | 3603 | #endif |
3602 | #ifdef HAVE_MESSAGES | 3604 | #ifdef HAVE_MESSAGES |
3603 | MHD_DLOG (daemon, | 3605 | MHD_DLOG (daemon, |
3604 | _ ( | 3606 | _ ("Hit process or system resource limit at %u " \ |
3605 | "Hit process or system resource limit at %u connections, temporarily suspending accept(). Consider setting a lower MHD_OPTION_CONNECTION_LIMIT.\n"), | 3607 | "connections, temporarily suspending accept(). " \ |
3608 | "Consider setting a lower MHD_OPTION_CONNECTION_LIMIT.\n"), | ||
3606 | (unsigned int) daemon->connections); | 3609 | (unsigned int) daemon->connections); |
3607 | #endif | 3610 | #endif |
3608 | } | 3611 | } |
@@ -3614,8 +3617,8 @@ MHD_accept_connection (struct MHD_Daemon *daemon) | |||
3614 | { | 3617 | { |
3615 | #ifdef HAVE_MESSAGES | 3618 | #ifdef HAVE_MESSAGES |
3616 | MHD_DLOG (daemon, | 3619 | MHD_DLOG (daemon, |
3617 | _ ( | 3620 | _ ("Failed to set nonblocking mode on incoming connection " \ |
3618 | "Failed to set nonblocking mode on incoming connection socket: %s\n"), | 3621 | "socket: %s\n"), |
3619 | MHD_socket_last_strerr_ ()); | 3622 | MHD_socket_last_strerr_ ()); |
3620 | #endif | 3623 | #endif |
3621 | } | 3624 | } |
@@ -3627,8 +3630,8 @@ MHD_accept_connection (struct MHD_Daemon *daemon) | |||
3627 | { | 3630 | { |
3628 | #ifdef HAVE_MESSAGES | 3631 | #ifdef HAVE_MESSAGES |
3629 | MHD_DLOG (daemon, | 3632 | MHD_DLOG (daemon, |
3630 | _ ( | 3633 | _ ("Failed to set noninheritable mode on incoming connection " \ |
3631 | "Failed to set noninheritable mode on incoming connection socket.\n")); | 3634 | "socket.\n")); |
3632 | #endif | 3635 | #endif |
3633 | } | 3636 | } |
3634 | #endif /* !USE_ACCEPT4 || !SOCK_CLOEXEC */ | 3637 | #endif /* !USE_ACCEPT4 || !SOCK_CLOEXEC */ |
@@ -3637,8 +3640,8 @@ MHD_accept_connection (struct MHD_Daemon *daemon) | |||
3637 | { | 3640 | { |
3638 | #ifdef HAVE_MESSAGES | 3641 | #ifdef HAVE_MESSAGES |
3639 | MHD_DLOG (daemon, | 3642 | MHD_DLOG (daemon, |
3640 | _ ( | 3643 | _ ("Failed to suppress SIGPIPE on incoming connection " \ |
3641 | "Failed to suppress SIGPIPE on incoming connection socket: %s\n"), | 3644 | "socket: %s\n"), |
3642 | MHD_socket_last_strerr_ ()); | 3645 | MHD_socket_last_strerr_ ()); |
3643 | #else /* ! HAVE_MESSAGES */ | 3646 | #else /* ! HAVE_MESSAGES */ |
3644 | (void) 0; /* Mute compiler warning */ | 3647 | (void) 0; /* Mute compiler warning */ |