mirror of
https://github.com/django/daphne.git
synced 2024-11-22 07:56:34 +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)
|
logger.debug("Connection %s did not get successful WS handshake.", self.reply_channel)
|
||||||
del self.factory.reply_protocols[self.reply_channel]
|
del self.factory.reply_protocols[self.reply_channel]
|
||||||
self.reply_channel = None
|
self.reply_channel = None
|
||||||
|
|
||||||
|
# Resume the producer so we keep getting data
|
||||||
|
self.channel.resumeProducing()
|
||||||
|
|
||||||
# Boring old HTTP.
|
# Boring old HTTP.
|
||||||
else:
|
else:
|
||||||
# Sanitize and decode headers, potentially extracting root path
|
# Sanitize and decode headers, potentially extracting root path
|
||||||
|
|
Loading…
Reference in New Issue
Block a user