Message6568
Hi Ralf:
I have been playing around with gunicorn and the following wsgi
wrapper:
===
import sys
sys.path.append('/path/to/roundup/hg/checkout/directory')
# obtain the WSGI request dispatcher
from roundup.cgi.wsgi_handler import RequestDispatcher
tracker_home = 'demo'
def app(environ, start_response):
RequestDispatcher(tracker_home)(environ, start_response)
===
I invoke it as:
SCRIPT_NAME=/sysadmin /usr/local/bin/gunicorn --bind 127.0.0.1:8917 -
-log-file=- --timeout=10 wsgi:app
(it is accessed as /sysadmin under my http server).
I am having issues with chrome:
.../sysadmin/issue188 net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)
are you seeing anything similar where the web page displays fully but
seems to keep trying to download?
Also do we need to remove:
if environ ['REQUEST_METHOD'] == 'OPTIONS':
code = 501
from roundup/cgi/wsgi_handler.py:RequestDispatcher::__call__
as options is a valid method for the rest call.
-- rouilj |
|
Date |
User |
Action |
Args |
2019-06-27 02:00:52 | rouilj | set | messageid: <1561600852.65.0.720644265499.issue2551047@roundup.psfhosted.org> |
2019-06-27 02:00:52 | rouilj | set | recipients:
+ rouilj, schlatterbeck |
2019-06-27 02:00:52 | rouilj | link | issue2551047 messages |
2019-06-27 02:00:52 | rouilj | create | |
|