mirror of
https://github.com/django/daphne.git
synced 2024-11-11 02:26:35 +03:00
Merge pull request #40 from bpeschier/master
Tell Twisted to keep producing data after connection upgrade
This commit is contained in:
commit
c8883eea50
|
@ -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