Exemple #1
0
def test_wsgi_hello():
    def test_control():
        time.sleep(3) #give the server time to start up
        try:
            verify_hello('127.0.0.1:7777')
        finally:
            ufork.LAST_ARBITER.stopping = True
    test_thread = threading.Thread(target=test_control)
    test_thread.daemon = True
    test_thread.start()
    ufork.serve_wsgi_gevent(wsgi_hello, ('0.0.0.0', 7777))
Exemple #2
0
def test_wsgi_hello():
    def test_control():
        time.sleep(3)  #give the server time to start up
        try:
            verify_hello('127.0.0.1:7777')
        finally:
            ufork.LAST_ARBITER.stopping = True

    test_thread = threading.Thread(target=test_control)
    test_thread.daemon = True
    test_thread.start()
    ufork.serve_wsgi_gevent(wsgi_hello, ('0.0.0.0', 7777))
Exemple #3
0
def start():
    ufork.serve_wsgi_gevent(wsgi_hello, ('0.0.0.0', 7777))
Exemple #4
0
def start():
    ufork.serve_wsgi_gevent(wsgi_hello, ('0.0.0.0', 7777))