#29343: static file serving fails with "Connection reset by peer" on HEAD 
requests
---------------------------------+--------------------------------------
     Reporter:  Yehor Smoliakov  |                    Owner:  nobody
         Type:  Bug              |                   Status:  new
    Component:  HTTP handling    |                  Version:  2.0
     Severity:  Normal           |               Resolution:
     Keywords:                   |             Triage Stage:  Unreviewed
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------
Changes (by mandm):

 * status:  closed => new
 * resolution:  needsinfo =>


Comment:

 Similar problem with HEAD requests after upgrading to Django `1.10.8`
 (`1.8.x` & `1.9.x` work)


 {{{
 curl -I http://localhost:8000/

 }}}

 gives this error

 {{{
 Traceback (most recent call last):
   File "/usr/lib/python2.7/wsgiref/handlers.py", line 86, in run
     self.finish_response()
   File "/usr/lib/python2.7/wsgiref/handlers.py", line 128, in
 finish_response
     self.write(data)
   File "/usr/lib/python2.7/wsgiref/handlers.py", line 217, in write
     self._write(data)
   File "/usr/lib/python2.7/socket.py", line 328, in write
     self.flush()
   File "/usr/lib/python2.7/socket.py", line 307, in flush
     self._sock.sendall(view[write_offset:write_offset+buffer_size])
 error: [Errno 104] Connection reset by peer
 ERROR: 2018-06-16 11:53:28,639 - "HEAD / HTTP/1.1" 500 59

 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29343#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.f2734e36c9ead6741927424b6224b998%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to