diff --git a/http.c b/http.c index 9869303b..5775226b 100644 --- a/http.c +++ b/http.c @@ -73,12 +73,17 @@ void http_loop(struct uwsgi_server * uwsgi) struct sockaddr_in c_addr; socklen_t c_len; - pthread_t a_new_thread; + pthread_t a_new_thread[200]; + int c = 0 ; while ((clientfd = accept(uwsgi->http_fd, (struct sockaddr *) & c_addr, &c_len)) >= 0) { - pthread_create(&a_new_thread, NULL, http_request, (void *) &clientfd); + uwsgi_log("!!! ACCEPTED !!!\n"); + pthread_create(&a_new_thread[c], NULL, http_request, (void *) &clientfd); + c++; + + uwsgi_log("READY TO ACCEPT\n"); } } diff --git a/uwsgi.xml b/uwsgi.xml index 5ca923cd..74bd0005 100644 --- a/uwsgi.xml +++ b/uwsgi.xml @@ -1,6 +1,7 @@ rtmpt - :3031 + :3031 + :3031 diff --git a/uwsgiconfig.py b/uwsgiconfig.py index f7153149..a39cf9b0 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -25,7 +25,7 @@ STACKLESS=False PLUGINS = [] USWALLOW=False UNBIT=False -DEBUG=True +DEBUG=False EMBED_PLUGINS=True UWSGI_BIN_NAME = 'uwsgi' UWSGI_PLUGIN_DIR = '.' diff --git a/wsgi_handlers.c b/wsgi_handlers.c index 89aa7b8a..94535194 100644 --- a/wsgi_handlers.c +++ b/wsgi_handlers.c @@ -362,9 +362,7 @@ int uwsgi_request_wsgi(struct uwsgi_server *uwsgi, struct wsgi_request *wsgi_req PyTuple_SetItem(wsgi_req->async_args, 0, wsgi_req->async_environ); - uwsgi_log("ready to call %p %p\n", wsgi_req->async_app, wsgi_req->async_environ); wsgi_req->async_result = python_call(wsgi_req->async_app, wsgi_req->async_args); - uwsgi_log("called.\n"); #ifdef UWSGI_PROFILER } @@ -374,7 +372,6 @@ int uwsgi_request_wsgi(struct uwsgi_server *uwsgi, struct wsgi_request *wsgi_req if (wsgi_req->async_result) { - uwsgi_log("managing response\n"); while ( manage_python_response(uwsgi, wsgi_req) != UWSGI_OK) { #ifdef UWSGI_ASYNC if (uwsgi->async > 1) {