#26011: allow_reuse_address = 1 on WSGIServer can cause random test failures in
LiveServerTestCase on Windows
-----------------------------------+--------------------
Reporter: knbk | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------
Windows happily allows a process to steal another process's address when
`SO_REUSEADDR` is set. This can cause requests to go to the wrong
`LiveServerThread`, and cause random test failures, such as
http://djangoci.com/job/pull-requests-windows/886/. I can't reproduce this
issue on Linux.
The solution is quite simply to set `allow_reuse_address` to `0` on our
`WSGIServer` implementation. The question is whether we want to do that
only when running a `LiveServerTestCase`, or on the base `WSGIServer`
class to prevent address stealing for `manage.py runserver` as well.
--
Ticket URL: <https://code.djangoproject.com/ticket/26011>
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/047.4402155f4933e700b9341658ecc7ac17%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.