[Twisted-Python] Transplating a request's transport (SockJS)

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Mon Oct 29 11:02:45 EDT 2012


On 28 Oct, 08:40 pm, _ at lvh.cc wrote:
>
>For some reason I thought IProtocol.makeConnection did that; I guess 
>it's
>because the implementation in Protocol sets the `transport` attribute 
>(I
>thought it was the other way around).
>
>I've set transport.protocol = myNewProtocol and now there's one extra
>passing acceptance test.

In case anyone didn't read #3204: this is, of course, an unsupported use 
of transports and not guaranteed to work or continue working (currently 
it will not work if you happen to be using the (preferred) protocol- 
based SSL implementation).

Jean-Paul



More information about the Twisted-Python mailing list