mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-11-21 10:56:10 +00:00
a bunch of fixes
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
@@ -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 = '.'
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user