Skip to content
This repository was archived by the owner on May 5, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions txsockjs/websockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

from zope.interface import implementer, Interface

from twisted.internet import interfaces
from twisted.protocols.policies import ProtocolWrapper, WrappingFactory
from twisted.python import log
from twisted.python.constants import NamedConstant, Names
Expand Down Expand Up @@ -546,6 +547,12 @@ def render(self, request):
# transport's lifecycle.
transport, request.transport = request.transport, None

# Twisted 16.4.1 calls pauseProducing() once the request is received.
# Resume the producer now.
producer = interfaces.IPushProducer(transport, None)
if producer is not None:
producer.resumeProducing()

# Connect the transport to our factory, and make things go. We need to
# do some stupid stuff here; see #3204, which could fix it.
if request.isSecure():
Expand Down