Re: [Twisted-Python] How to cap the buffering size of data to be sent in Protocol class

2010-09-22 Thread Phil Mayers
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 proble

[Twisted-Python] How to cap the buffering size of data to be sent in Protocol class

2010-09-22 Thread Weikai Xie
Folks, I have a server program which basically use a protocol.Protocol class to send a continuous byte stream to clients on TCP connections. However, I found , for whatever reason, if a client hung up and failed to remove the data from its receiving socket buffer, then the memory usage of the