summaryrefslogtreecommitdiff
path: root/tests/testrpc.py
blob: c3363d6ade0c160358a8fa567c468bd9653744d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import uwsgi

def hello():
    pass

def application(env, start_response):
    try:
        uwsgi.register_rpc("A"*300, hello)
        start_response('500 Buffer Overflow', [('Content-Type', 'text/plain')])
    except ValueError:
        start_response('200 OK', [('Content-Type', 'text/plain')])

    return ()