[Twisted-Python] git clone with spawnProcess() can prevent socket data flow, any clue why?

Petr Mifek pm-twisted-python at anapol.cz
Sat Aug 28 11:02:20 EDT 2010

Hi Martin,

I tried your code just for the curiosity and it seems to work here. Are 
you sure it doesn't work? Cloning the Gimp repository takes ages here 
(half an hour - well, for a ~200MB compressed repository it isn't that 
bad given my connection speed now), but it eventually finishes. The 
error output handling behaves somewhat weird, but definitely Twisted 
doesn't seem to "block" git from doing it's job, at least not here.

See the output of your script here: http://paste.org/21833

Tested on Python 2.6.1/Twisted 8.2.0/OSX 10.6.


Martin Nordholts wrote:
> On 08/28/2010 03:32 PM, Itamar Turner-Trauring wrote:
>> On Sat, 2010-08-28 at 11:31 +0200, Martin Nordholts wrote:
>>> I'll see if I can pinpoint the bug...
>> If you can reproduce this with a Python program you launch, rather than
>> git, that would be ideal.
>> I assume you've tested this by running git without twisted, on the
>> command-line, just to make sure the problem doesn't occur there?
> Yes, I can clone fine if I don't use Twisted, and I think it worked fine 
> to clone with Twisted when I ran git-daemon myself. It when cloning from 
> a local repo copy with file:// in Twisted instead of from 
> git://git.gnome.org.
> Just out of curiosity, can you reproduce the problem on your machine? 
> Does my test-program ever return for you?
>   / Martin
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

More information about the Twisted-Python mailing list