I’m using web.py framework. For debugging purposes, I’d like to force all requests to be handled by a single thread, or simulate such behaviour with a mutex. How can I do that?
I’m using web.py framework. For debugging purposes, I’d like to force all requests to
Share
Let me suggest something like this, but it will lock only current application stack over your controller method.
UPD: if you need to lock the whole application stack then you probably have to wrap
app.wsgifuncwith your own WSGI middleware. To get an idea check my answer to this question.