This is a test to see how uWSGI handles a slowloris attack. To run it:
In one terminal window, run the uWSGI server (you'll need a fairly recent version of uWSGI)
> uwsgi --http=127.0.0.1:8080 --master --module=testapp:application
In another window, run the attack:
> python loris.py
Now just visit http://127.0.0.1:8080/ in your browser, and see if it responds. Or, in a third tab:
> curl http://127.0.0.1:8080
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>Slowloris Test</title>
</head>
<body>
<p>Slowloris Test</p>
</body>
</html>