Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

Fix compatibility with Twisted 16.4.1 (and possibly earlier versions). #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hathawsh
Copy link

Twisted now calls pauseProducing() when it finishes receiving the request. For txsockjs to continue receiving data from the transport, it now needs to call resumeProducing(). This should have no effect on earlier versions of Twisted.

See also:

https://twistedmatrix.com/trac/ticket/8320#comment:23
https://twistedmatrix.com/trac/ticket/3204

Twisted now calls pauseProducing() when it finishes receiving the request.
For txsockjs to continue receiving data from the transport, it now needs to
call resumeProducing().  This should have no effect on earlier versions
of Twisted.
@niol
Copy link
Contributor

niol commented Nov 6, 2016

I can confirm that this fixes my problem when using twisted 16.4 and leads to no problem when using twisted 14.0.

@jdcumpson
Copy link

The change seems to have happened between 16.2 and 16.3 as far as I could tell. I was planning on trying to bisect it this week.

@hathawsh
Copy link
Author

hathawsh commented Dec 6, 2016

Twisted's behavior changed with the nice new HTTP 2 code. Unfortunately, txsockjs is using undocumented interfaces that were affected by HTTP 2. Fortunately, Twisted didn't change very much, so I'm OK with relying on these particular undocumented interfaces for a while.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants