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