summaryrefslogtreecommitdiff
path: root/docs/test_server.ini
diff options
context:
space:
mode:
authorMarc Abramowitz <marc@marc-abramowitz.com>2016-03-07 14:05:52 -0800
committerMarc Abramowitz <marc@marc-abramowitz.com>2016-03-07 14:05:52 -0800
commit42b22881290e00e06b840dee1e42f0f5ef044d47 (patch)
treeb4fef928625acd3e8ee45ccaa8c7a6c9810b3601 /docs/test_server.ini
downloadpaste-git-tox_add_py35.tar.gz
tox.ini: Add py35 to envlisttox_add_py35
Diffstat (limited to 'docs/test_server.ini')
-rw-r--r--docs/test_server.ini42
1 files changed, 42 insertions, 0 deletions
diff --git a/docs/test_server.ini b/docs/test_server.ini
new file mode 100644
index 0000000..7b9c096
--- /dev/null
+++ b/docs/test_server.ini
@@ -0,0 +1,42 @@
+[DEFAULT]
+error_email = ianb@colorstudy.com
+
+[app:main]
+use = egg:PasteScript#test
+
+[server:main]
+use = egg:Paste#http
+host = 127.0.0.1:8081
+# These options make it easier to trigger the thread pool catches
+# (i.e., threads are hung fast, killed fast, spawn fast, and the
+# whole process dies quickly due to zombies)
+threadpool_workers = 3
+threadpool_hung_thread_limit = 10
+threadpool_kill_thread_limit = 20
+threadpool_spawn_if_under = 2
+threadpool_max_zombie_threads_before_die = 2
+threadpool_hung_check_period = 1
+threadpool_dying_limit = 10
+
+[server:cherrypy]
+use = egg:PasteScript#cherrypy
+host = 127.0.0.1:8080
+
+[filter-app:watch_threads]
+use = egg:Paste#error_catcher
+debug = true
+next = watch_threads_inner
+
+[app:watch_threads_inner]
+use = egg:Paste#urlmap
+/bad = bad_app
+/ = watch_app
+
+[app:watch_app]
+use = egg:Paste#watch_threads
+allow_kill = true
+
+[app:bad_app]
+paste.app_factory = paste.debug.watchthreads:make_bad_app
+
+