Edgewall Software

Ticket #4976 (closed defect: duplicate)

Opened 22 months ago

Last modified 8 months ago

Unhandled EPIPE Exception in _fcgi.py

Reported by: anonymous Owned by: mgood
Priority: normal Milestone:
Component: general Version:
Severity: normal Keywords: fcgi
Cc:

Description (last modified by mgood) (diff)

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

trac-epipe.patch (0.5 KB) - added by anonymous 22 months ago.
This patch may fix this, please review

Change History

Changed 22 months ago by anonymous

This patch may fix this, please review

Changed 22 months ago by Till Maas

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.

Changed 22 months ago by mgood

  • description modified (diff)

I'm fixing the description formatting. The {{{ and }}} should be on a separate line for pre-formatted blocks.

Changed 22 months ago by mgood

  • owner changed from jonas to mgood

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.

Changed 21 months ago by cboos

  • keywords fcgi added
  • milestone set to 0.10.5

Changed 12 months ago by eblot

  • status changed from new to closed
  • resolution set to duplicate

Duplicate of #3957.

Changed 8 months ago by cboos

  • milestone 0.10.5 deleted

Add/Change #4976 (Unhandled EPIPE Exception in _fcgi.py)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from mgood. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.