diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-03-29 17:13:46 +0200 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-03-29 17:13:46 +0200 |
commit | ea247786dae7953617ee2251c1bb7370dadd501f (patch) | |
tree | d9b0c4c1120bc8221c79fbfd370af4c274abdcaf | |
parent | a5267b29333fe0fae902f5817b3d743a1b6ec4b7 (diff) | |
download | libmicrohttpd-ea247786dae7953617ee2251c1bb7370dadd501f.tar.gz libmicrohttpd-ea247786dae7953617ee2251c1bb7370dadd501f.zip |
Upgraded TLS: warn if emergency buffer is used
-rw-r--r-- | src/microhttpd/response.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c index 9cab223f..f0ca7825 100644 --- a/src/microhttpd/response.c +++ b/src/microhttpd/response.c | |||
@@ -2059,6 +2059,11 @@ MHD_response_execute_upgrade_ (struct MHD_Response *response, | |||
2059 | use our 'emergency' buffer of #RESERVE_EBUF_SIZE bytes. */ | 2059 | use our 'emergency' buffer of #RESERVE_EBUF_SIZE bytes. */ |
2060 | avail = RESERVE_EBUF_SIZE; | 2060 | avail = RESERVE_EBUF_SIZE; |
2061 | buf = urh->e_buf; | 2061 | buf = urh->e_buf; |
2062 | #ifdef HAVE_MESSAGES | ||
2063 | MHD_DLOG (daemon, | ||
2064 | _ ("Memory shortage in connection's memory pool. " \ | ||
2065 | "The \"upgraded\" communication will be inefficient.\n")); | ||
2066 | #endif | ||
2062 | } | 2067 | } |
2063 | else | 2068 | else |
2064 | { | 2069 | { |