Gunicorn traceback when downloading “not modified” page

Bug #1517397 reported by EOLE team
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gunicorn (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hello,

We encounter tracebacks in gunicorn-error.log when a client download a “not modified” page:

    gunicorn-error.log <==
    2015-06-16 11:39:00 [5565] [ERROR] Socket error processing request.
    Traceback (most recent call last):
      File "/usr/lib/python2.7/dist-packages/gunicorn/workers/async.py", line 42, in handle
        req = six.next(parser)
      File "/usr/lib/python2.7/dist-packages/gunicorn/http/parser.py", line 39, in __next__
        self.mesg = self.mesg_class(self.cfg, self.unreader, self.req_count)
      File "/usr/lib/python2.7/dist-packages/gunicorn/http/message.py", line 152, in __init__
        super(Request, self).__init__(cfg, unreader)
      File "/usr/lib/python2.7/dist-packages/gunicorn/http/message.py", line 49, in __init__
        unused = self.parse(self.unreader)
      File "/usr/lib/python2.7/dist-packages/gunicorn/http/message.py", line 164, in parse
        self.get_data(unreader, buf, stop=True)
      File "/usr/lib/python2.7/dist-packages/gunicorn/http/message.py", line 155, in get_data
        data = unreader.read()
      File "/usr/lib/python2.7/dist-packages/gunicorn/http/unreader.py", line 38, in read
        d = self.chunk()
      File "/usr/lib/python2.7/dist-packages/gunicorn/http/unreader.py", line 65, in chunk
        return self.sock.recv(self.mxchunk)
      File "/usr/lib/python2.7/dist-packages/eventlet/greenio.py", line 251, in recv
        return fd.recv(buflen, flags)
      File "/usr/lib/python2.7/socket.py", line 170, in _dummy
        raise error(EBADF, 'Bad file descriptor')
    error: [Errno 9] Bad file descriptor

This problem is reported and fixed upstream (https://github.com/benoitc/gunicorn/issues/630).

Is it possible to backport the patch?

Regards.

Description: Ubuntu 14.04.3 LTS
Release: 14.04

Tags: trusty
Revision history for this message
Chuck Short (zulcss) wrote :

I think this fix is too intrusive for a fix to trusty. Its been fixed in xenial.

Changed in gunicorn (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.