various fixes

This commit is contained in:
roberto@maverick64
2011-04-22 08:51:29 +02:00
parent 14c58c8e62
commit 81641686bc
3 changed files with 19 additions and 2 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ bin_name = uwsgi
plugin_dir = .
embedded_plugins = python, ping, cache, nagios, rpc, fastrouter, http, ugreen
locking = flock
locking = auto
event = auto
timer = auto
filemonitor = auto
+4 -1
View File
@@ -1,6 +1,6 @@
[uwsgi]
master = true
;master = true
processes = 4
threads = 8
@@ -22,3 +22,6 @@ cache-blocksize = 98304
log-micros = true
module = heavytest
mount = /cc=uwsgicc/__init__.py
+14
View File
@@ -0,0 +1,14 @@
import uwsgi
import werkzeug.testapp
uwsgi.cache_set("/cache/get", "HTTP 1.1 200 OK\r\nContent-Type: text/html\r\n\r\n<h1>I am the uWSGI cache</h1>")
def app001(env, start_response):
start_response('200 OK', [('Content-Type', 'text/html')])
return "PATH_INFO=%s" % env['PATH_INFO']
def app002(env, start_response):
start_response('200 OK', [('Content-Type', 'text/html')])
return "requests: %d" % uwsgi.total_requests()
uwsgi.applications = { '':werkzeug.testapp.test_app, '/app001':app001, '/app002':app002 }