#27596: LiveServerTestCase in 1.10.4 doesnt close server ports properly
-----------------------------------+--------------------------------------
     Reporter:  Mike Hibbert       |                    Owner:  nobody
         Type:  Bug                |                   Status:  new
    Component:  Testing framework  |                  Version:  1.10
     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
-----------------------------------+--------------------------------------

Comment (by Mike Hibbert):

 Actually, I think I've found it:

 in 1.9.12 we see:

 def _create_server(self, port):
         return WSGIServer((self.host, port), QuietWSGIRequestHandler)

 in 1.10.x we see this:
 def _create_server(self, port):
         return WSGIServer((self.host, port), QuietWSGIRequestHandler,
 allow_reuse_address=False)

 When I remove the "allow_reuse_address=False" its removes the bug
 altogether

--
Ticket URL: <https://code.djangoproject.com/ticket/27596#comment:7>
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/069.6810c91dcaa6eeeb0f03f640223817b8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to