From 72a4a6738d09efdb6470402fd10df2e2f8cf741c Mon Sep 17 00:00:00 2001 From: Unbit Date: Sun, 21 Sep 2014 08:31:33 +0200 Subject: [PATCH] support old plugins ABI --- core/uwsgi.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/core/uwsgi.c b/core/uwsgi.c index 1b854207..9725a71e 100644 --- a/core/uwsgi.c +++ b/core/uwsgi.c @@ -2942,8 +2942,23 @@ unsafe: uwsgi_log("your server socket listen backlog is limited to %d connections\n", uwsgi.listen_queue); #endif + uwsgi_log("your mercy for graceful operations on workers is %d seconds\n", uwsgi.worker_reload_mercy); + uwsgi_log("your request buffer size is %llu bytes\n", (unsigned long long) uwsgi.buffer_size); + if (!uwsgi.__buffer_size) { + if (uwsgi.buffer_size > 0xffff) { + uwsgi_log("your request buffer size for old plugins has been limited to 64k\n"); + uwsgi.__buffer_size = 0xffff; + } + else { + uwsgi.__buffer_size = uwsgi.buffer_size; + } + } + else { + uwsgi_log("your request buffer size for old plugins is %u bytes\n", uwsgi.__buffer_size); + } + if (uwsgi.crons) { struct uwsgi_cron *ucron = uwsgi.crons; while (ucron) {