PylonsHQ.

Layout: Fixed-width

Troubleshooting Threads

Skip to end of metadata
Go to start of metadata
Unknown macro: {metadata-list}
Name Troubleshooting
Space Pylons CookBook
Section  
Page Troubleshooting
Version 1.0
Status Draft
Curator Graham Higgins
Reviewed False
Author(s) [

Troubleshooting

Threads

If you suspect a thread-unsafe interaction is causing errors and you're using Paste's HTTP server, put this in your config file to prevent simultaneous requests and see if the problem goes away:

1
2
3
[server:main]
threadpool_workers = 1
threadpool_spawn_if_under = 1

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Jun 04, 2008

    Alen Ribic says:

    wouldn't this degrade performance? --alen

    wouldn't this degrade performance?

    --alen

  2. Jun 05, 2008

    Eric Holmberg says:

    Yes, it will require that all requests get processed by the single thread (seria...

    Yes, it will require that all requests get processed by the single thread (serially). I think the idea here is that this is a debug test to troubleshoot odd behavior, so you would do this on a test system, not your production system.


Powered by Pylons - Contact Administrators