mirror of
https://github.com/django/daphne.git
synced 2024-11-21 23:46:33 +03:00
Tell Twisted to keep producing data after connection upgrade
This commit is contained in:
parent
fca52d4850
commit
65da239aa2
|
@ -110,6 +110,10 @@ class WebRequest(http.Request):
|
|||
logger.debug("Connection %s did not get successful WS handshake.", self.reply_channel)
|
||||
del self.factory.reply_protocols[self.reply_channel]
|
||||
self.reply_channel = None
|
||||
|
||||
# Resume the producer so we keep getting data
|
||||
self.channel.resumeProducing()
|
||||
|
||||
# Boring old HTTP.
|
||||
else:
|
||||
# Sanitize and decode headers, potentially extracting root path
|
||||
|
|
Loading…
Reference in New Issue
Block a user