On 04/05/17 14:32, Nagy, Attila wrote:

Are there any problems with this approach?

You're poking at a private member of the .original IResponse there, and moreover the transport object which seems risky.

The single treq.collect call to consumer.write will also not necessarily respect the consumer-issued flow control (even if touching the _transport was valid, you don't know you won't get buffered data after you've been asked to stop)

_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to