#30015: HTTP server doesn't clear previous request data in keep-alive 
connection.
-------------------------------------+------------------------------------
     Reporter:  Konstantin Alekseev  |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  HTTP handling        |                  Version:  2.1
     Severity:  Release blocker      |               Resolution:
     Keywords:  keep-alive, server   |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+------------------------------------

Comment (by Xavier Fernandez):

 Hello,

 our Selenium tests were also affected by the same change (bisecting lead
 to
 
https://github.com/django/django/commit/e1721ece485b35ab5543f134203a8a8ce9f31a7c
 which is
 
https://github.com/django/django/commit/934acf1126995f6e6ccba5947ec8f7561633c27f).

 Basically, the webdriver `get(url)` gets stuck for several hundred of
 seconds leading to test timeout, I'm trying to build a minimal selenium
 test showing this regression.
 In the meanwhile, the provided patch makes our tests pass again but seems
 to crash a bunch of threads with:

 {{{
   File
 "/home/xfernandez/other_dev/django/django/core/servers/basehttp.py", line
 101, in close
     obj._stream._read_limited()
 AttributeError: '_io.BytesIO' object has no attribute '_read_limited'
 }}}
 or
 {{{
   File
 "/home/xfernandez/other_dev/django/django/core/servers/basehttp.py", line
 99, in close
     for obj in self.result._closable_objects:
 AttributeError: 'FileWrapper' object has no attribute '_closable_objects'
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30015#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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.c8bf9a0af6129c77b96aa66e856210a0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to