Skip to content
This repository was 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
hathawsh wants to merge 1 commit intoDesertBus:masterfrom
hathawsh:master
Open

Fix compatibility with Twisted 16.4.1 (and possibly earlier versions).#33
hathawsh wants to merge 1 commit intoDesertBus:masterfrom
hathawsh:master

Conversation

@hathawsh
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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