paste.debug.watchthreads – watch thread workers in paste.httpserver — Paste v1.7.5 documentation

### Navigation

- index
- modules |
- Paste v1.7.5 documentation »

# `paste.debug.watchthreads` – watch thread workers in paste.httpserver

Watches the key `paste.httpserver.thread_pool` to see how many threads there are and report on any wedged threads.

## Module Contents

class `paste.debug.watchthreads.` `WatchThreads`(allow_kill=False)

  Application that watches the threads in `paste.httpserver`, showing the length each thread has been working on a request.

  If allow_kill is true, then you can kill errant threads through this application.

  This application can expose private information (specifically in the environment, like cookies), so it should be protected.

`paste.debug.watchthreads.` `make_watch_threads`(global_conf, allow_kill=False)

  Application that watches the threads in `paste.httpserver`, showing the length each thread has been working on a request.

  If allow_kill is true, then you can kill errant threads through this application.

  This application can expose private information (specifically in the environment, like cookies), so it should be protected.

`paste.debug.watchthreads.` `make_bad_app`(global_conf, pause=0)

### Navigation

- index
- modules |
- Paste v1.7.5 documentation »