mirror of
https://github.com/django/daphne.git
synced 2025-07-13 09:22:17 +03:00
Don't try and read requests that are closed already (#205)
This commit is contained in:
parent
8c031239ad
commit
ece52b8e79
|
@ -159,6 +159,10 @@ class WebRequest(http.Request):
|
||||||
"client": self.client_addr,
|
"client": self.client_addr,
|
||||||
"server": self.server_addr,
|
"server": self.server_addr,
|
||||||
})
|
})
|
||||||
|
# Check they didn't close an unfinished request
|
||||||
|
if self.content.closed:
|
||||||
|
# Not much we can do, the request is prematurely abandoned.
|
||||||
|
return
|
||||||
# Run application against request
|
# Run application against request
|
||||||
self.application_queue.put_nowait(
|
self.application_queue.put_nowait(
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user