diff options
| author | Fabien Meghazi <agr@amigrave.com> | 2017-08-03 10:50:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-03 10:50:18 +0200 |
| commit | 2c0f6f39d72f88e229834b18bf7dfcf54baf3ae0 (patch) | |
| tree | 8b5e66cb0542e942f6bfc2d43cbdab87a84affb6 /odoo/http.py | |
| parent | ef39b3d9e434d3ec3dc6cd1de5336384a5882c69 (diff) | |
[IMP] http: improve dumpstacks and remaining requests handling during tests (#18640)
This patch modifies Root#dispatch() in order to keep the httprequest url
in the current thread's attribute and use if for dumpstacks and the
phantomjs tests remaining requests handling.
Also added a counter in order to avoid looping forever when trying to join unclosed http requests
in phantomjs test suite after a phantomjs failure + added a log.warning in such a case so it's easier to troubleshoot runbot's ir.logging.
Diffstat (limited to 'odoo/http.py')
| -rw-r--r-- | odoo/http.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/odoo/http.py b/odoo/http.py index 94ec3b8c752..89efcbdeb41 100644 --- a/odoo/http.py +++ b/odoo/http.py @@ -1440,6 +1440,7 @@ class Root(object): httprequest = werkzeug.wrappers.Request(environ) httprequest.app = self httprequest.parameter_storage_class = werkzeug.datastructures.ImmutableOrderedMultiDict + threading.current_thread().url = httprequest.url explicit_session = self.setup_session(httprequest) self.setup_db(httprequest) |
