Opened 10 years ago
Last modified 14 months ago
#11686 new enhancement
Official support for uwsgi
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | next-stable-1.6.x |
Component: | web frontend | Version: | |
Severity: | normal | Keywords: | uwsgi |
Cc: | Ryan J Ollos | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
When using uwsgi + refresh the site fast you get tons of:
Traceback (most recent call last): File "/home/trac/uwsgi-test/local/lib/python2.7/site-packages/trac/web/main.py", line 474, in dispatch_request return _dispatch_request(req, env, env_error) File "/home/trac/uwsgi-test/local/lib/python2.7/site-packages/trac/web/main.py", line 513, in _dispatch_request send_internal_error(env, req, sys.exc_info()) File "/home/trac/uwsgi-test/local/lib/python2.7/site-packages/trac/web/main.py", line 630, in send_internal_error req.send_error(exc_info, status=500, env=env, data=data) File "/home/trac/uwsgi-test/local/lib/python2.7/site-packages/trac/web/api.py", line 581, in send_error self.write(data) File "/home/trac/uwsgi-test/local/lib/python2.7/site-packages/trac/web/api.py", line 660, in write self._write(data) IOError: write error
I see that there is a special case for mod_wsgi, maybe you could add one for uwsgi too? http://trac.edgewall.org/browser/branches/1.0-stable/trac/web/api.py#L666
Saw that atleast jomae uses uwsgi…
Also, is there any recommended conf for uwsgi? threads - on/off? and so on…
Attachments (0)
Change History (10)
comment:1 by , 10 years ago
Cc: | added |
---|
comment:2 by , 10 years ago
comment:3 by , 10 years ago
Only thing i did was the F5 the page many times quickly, thanks for the patch!
What about threads? http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html?highlight=threads#a-note-on-python-threads
Is it something trac uses?
comment:4 by , 10 years ago
I don't know that. I've used uWSGI for a testing purpose only. You can ask it on the MailingList or in the IrcChannel.
comment:5 by , 10 years ago
Milestone: | → next-stable-1.0.x |
---|
comment:6 by , 10 years ago
Component: | general → web frontend |
---|---|
Keywords: | uwsgi added |
#9973 is the same on mod_wsgi.
comment:7 by , 9 years ago
Summary: | Offical support for uwsgi → Official support for uwsgi |
---|
comment:8 by , 8 years ago
Milestone: | next-stable-1.0.x → next-stable-1.2.x |
---|
Moved ticket assigned to next-stable-1.0.x since maintenance of 1.0.x is coming to a close. Please move the ticket back if it's critical to fix on 1.0.x.
comment:9 by , 5 years ago
Milestone: | next-stable-1.2.x → next-stable-1.4.x |
---|
I quickly tried to reproduce it. But cannot reproduce. However, I think that you can try to use disable-write-exception.
Adding the case of uWSGI, patch is the following.
trac/web/api.py
mod_wsgi raises an IOError with only a messageif the client disconnectsGenerally, patch is like this.
trac/web/api.py