On 04:29 pm, ste at demaledetti.net wrote:
>Il 01/11/2010 15:34, Stefano Debenedetti ha scritto:
>>I'll try to replicate and to figure out what does
>>FileDescriptor.unregisterProducer need to do instead of the probably
>>too dumb lines I added there:
>>>>if self.disconnecting:
>> self.startWriting()
>>Alright, I added a test case that replicates the new error
>introduced by the above change and included it in a new proposed fix:
>>http://twistedmatrix.com/trac/attachment/ticket/4719/avoid_hang_in_CLOSE_WAIT_take2.patch>>if self.connected and self.disconnecting:
> self.startWriting()
>>This new patch now passes both new unit tests.
>>Sorry about the noise, if I find any more issues about this I'll
>post them to the ticket page instead of polluting the mailing list
>with replies to myself.
This is really awesome. Thank you very much. :)
Jean-Paul