#34442: runserver is slow to accept http connexions when running on 0.0.0.0
-------------------------------+--------------------------------------
Reporter: Arthur | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 4.1
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 Arthur):
I've found traces of this bug from 2020
[https://stackoverflow.com/a/61732944/3738545 here].
What I've tried so far :
- Adding `-X importime` to the startup command : the imports mostly finish
in under a second, before `You have 18 unapplied migration(s). Your
project may not work properly until you apply the migrations for app(s):
admin, auth, contenttypes, sessions.` gets printed to the console.
Just before the request gets processed, you'll see the following lines :
{{{
import time: 245 | 245 | stringprep
import time: 435 | 680 | encodings.idna
import time: 520 | 520 |
django.contrib.messages.storage.cookie
import time: 241 | 241 |
django.contrib.messages.storage.session
[28/Mar/2023 08:47:55] "GET / HTTP/1.1" 200 10681
}}}
- Running cProfile : couldn't find the right incantation to make it accept
arguments.
- Pause the program in PyCharm debugger after `Quit the server with
CONTROL-C.` gets printed : only stops in StatReloader.tick(), so it's
probably a threading issue (?)
- Searching for issues here : nothing found about this.
--
Ticket URL: <https://code.djangoproject.com/ticket/34442#comment:1>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070187276e9631-ba98528c-ad2a-4e26-8dca-796232160559-000000%40eu-central-1.amazonses.com.