On 09/22/2010 08:52 AM, Weikai Xie wrote > My questions is that whether there is any mechanism in Twisted > which can be used to set the maximum buffering size of the Protocol; > and whenever if this cap is reached, I can be informed to give a > chance to know the client is experiencing problem
You need to implement a producer/consumer interface. I'm not very familiar with them, but there have been good examples in the past. Basically your data source should be a producer and the protocol should be a consumer. When the protocol (consumer) buffer is full, it'll notify the producer to stop producing. _______________________________________________ Twisted-Python mailing list [email protected] http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
