Ver Fonte

Upgraded TLS: warn if emergency buffer is used

Evgeny Grin (Karlson2k) há 2 anos atrás
pai
commit
ea247786da
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      src/microhttpd/response.c

+ 5 - 0
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
     {