diff --git a/taskqueue.py b/examples/taskqueue.py similarity index 100% rename from taskqueue.py rename to examples/taskqueue.py diff --git a/runningthread.py b/tests/runningthread.py similarity index 100% rename from runningthread.py rename to tests/runningthread.py diff --git a/ugreenchat.py b/ugreenchat.py deleted file mode 100644 index 70018f95..00000000 --- a/ugreenchat.py +++ /dev/null @@ -1,45 +0,0 @@ -#!./uwsgi -import uwsgi - -from bottle import route, default_app, request, response, redirect - -@route('/') -def chat(): - return """ - """ - -@route('/sender') -def sender(): - return """
""" - - - -@route('/recv') -def recv(): - response.header['Transfer-Encoding'] = 'chunked' - - # this will flush headers - yield "" - - running = True - while running: - # this will put the core in pause (for max 10 seconds) and remove it from the sched queue, so the /send can write to its socket - if not uwsgi.green_pause(10): - running = False - # this will maintain the connection opened if no data arrives - yield "" - - -@route('/send') -def send(): - # this will write to all the core in PAUSED state - uwsgi.green_write_all(request.GET['message'] + "