From ef3c8a5bd99fe28cbd6c4466f3c1166c4e30563d Mon Sep 17 00:00:00 2001 From: Unbit Date: Sat, 19 Apr 2014 11:01:14 +0200 Subject: [PATCH] fixed tornado plugin --- plugins/tornado/tornado.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/tornado/tornado.c b/plugins/tornado/tornado.c index 19e05429..cc01c1a8 100644 --- a/plugins/tornado/tornado.c +++ b/plugins/tornado/tornado.c @@ -326,6 +326,11 @@ static void tornado_loop() { uwsgi_log("!!! Running tornado with a socket-timeout lower than 30 seconds is not recommended, tune it with --socket-timeout !!!\n"); } + if (!uwsgi.async_waiting_fd_table) + uwsgi.async_waiting_fd_table = uwsgi_calloc(sizeof(struct wsgi_request *) * uwsgi.max_fd); + if (!uwsgi.async_proto_fd_table) + uwsgi.async_proto_fd_table = uwsgi_calloc(sizeof(struct wsgi_request *) * uwsgi.max_fd); + // get the GIL UWSGI_GET_GIL