a bunch of fixes

This commit is contained in:
roberto@voldemort
2010-07-19 12:22:16 +02:00
parent d7b8704165
commit 10ea1fee6e
4 changed files with 10 additions and 7 deletions
+7 -2
View File
@@ -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");
}
}
+2 -1
View File
@@ -1,6 +1,7 @@
<uwsgi>
<module>rtmpt</module>
<socket>:3031</socket>
<socket mode="dev">:3031</socket>
<socket mode="pippo">:3031</socket>
<routing base="rtmpt" modifier1="0" modifier2="0">
+1 -1
View File
@@ -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 = '.'
-3
View File
@@ -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) {