[Twisted-Python] MemoryError in twisted.internet.abstract.FileDescriptor

Itamar Turner-Trauring itamar at itamarst.org
Fri Dec 9 16:31:11 EST 2011


>     What's the best solution? Apply the patch attached on this ticket,
> moving to a producer/consumer approach, or any other idea?

The patch will just delay the problem... you're creating a huge number of
strings, faster than the transport can write them out. The solution is
indeed to use the consumer API to pause creation of more data until the
transport clears its buffers.




More information about the Twisted-Python mailing list