#4976 closed defect (duplicate)
Unhandled EPIPE Exception in _fcgi.py
| Reported by: | anonymous | Owned by: | Matthew Good |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general | Version: | |
| Severity: | normal | Keywords: | fcgi |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description (last modified by )
When running trac with fcgi and lighttpd, I observe following messages: It seems that EPIPE is not handled properly.
File "/usr/lib/python2.4/site-packages/trac/web/_fcgi.py", line 654, in run
self.process_input()
File "/usr/lib/python2.4/site-packages/trac/web/_fcgi.py", line 690, in process_input
self._do_params(rec)
File "/usr/lib/python2.4/site-packages/trac/web/_fcgi.py", line 789, in _do_params
self._start_request(req)
File "/usr/lib/python2.4/site-packages/trac/web/_fcgi.py", line 773, in _start_request
req.run()
File "/usr/lib/python2.4/site-packages/trac/web/_fcgi.py", line 582, in run
self._flush()
File "/usr/lib/python2.4/site-packages/trac/web/_fcgi.py", line 589, in _flush
self.stdout.close()
File "/usr/lib/python2.4/site-packages/trac/web/_fcgi.py", line 348, in close
self._conn.writeRecord(rec)
File "/usr/lib/python2.4/site-packages/trac/web/_fcgi.py", line 705, in writeRecord
rec.write(self._sock)
File "/usr/lib/python2.4/site-packages/trac/web/_fcgi.py", line 542, in write
self._sendall(sock, header)
File "/usr/lib/python2.4/site-packages/trac/web/_fcgi.py", line 519, in _sendall
sent = sock.send(data)
socket.error: (32, 'Daten\xc3\xbcbergabe unterbrochen (broken pipe)')
Attachments (1)
Change History (7)
by , 19 years ago
| Attachment: | trac-epipe.patch added |
|---|
comment:1 by , 19 years ago
I wrote the patch after reading: http://www.fastcgi.com/docs/faq.html#Signals
I guess this is how to fix it, but I am not really sure, whether the exception should be handled in a different way.
comment:2 by , 19 years ago
| Description: | modified (diff) |
|---|
I'm fixing the description formatting. The {{{ and }}} should be on a separate line for pre-formatted blocks.
comment:3 by , 19 years ago
| Owner: | changed from to |
|---|
Hrm, there is a place in _fcgi.py that should be catching the EPIPE exception already, so I'm not quite sure why it's not getting caught there. I'll try to take another look at this.
comment:4 by , 19 years ago
| Keywords: | fcgi added |
|---|---|
| Milestone: | → 0.10.5 |
comment:6 by , 17 years ago
| Milestone: | 0.10.5 |
|---|



This patch may fix this, please review