Edgewall Software
Modify

Opened 18 years ago

Closed 17 years ago

Last modified 17 years ago

#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 Matthew Good)

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)

trac-epipe.patch (549 bytes ) - added by anonymous 18 years ago.
This patch may fix this, please review

Download all attachments as: .zip

Change History (7)

by anonymous, 18 years ago

Attachment: trac-epipe.patch added

This patch may fix this, please review

comment:1 by Till Maas, 18 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 Matthew Good, 18 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 Matthew Good, 18 years ago

Owner: changed from Jonas Borgström to Matthew Good

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 Christian Boos, 18 years ago

Keywords: fcgi added
Milestone: 0.10.5

comment:5 by Emmanuel Blot, 17 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #3957.

comment:6 by Christian Boos, 17 years ago

Milestone: 0.10.5

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matthew Good.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Matthew Good to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.