commit ea247786dae7953617ee2251c1bb7370dadd501f parent a5267b29333fe0fae902f5817b3d743a1b6ec4b7 Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Wed, 29 Mar 2023 17:13:46 +0200 Upgraded TLS: warn if emergency buffer is used Diffstat:
| M | src/microhttpd/response.c | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c @@ -2059,6 +2059,11 @@ MHD_response_execute_upgrade_ (struct MHD_Response *response, use our 'emergency' buffer of #RESERVE_EBUF_SIZE bytes. */ avail = RESERVE_EBUF_SIZE; buf = urh->e_buf; +#ifdef HAVE_MESSAGES + MHD_DLOG (daemon, + _ ("Memory shortage in connection's memory pool. " \ + "The \"upgraded\" communication will be inefficient.\n")); +#endif } else {