git-svn: avoid network timeouts for long-running fetches
authorEric Wong <normalperson@yhbt.net>
Mon, 4 Dec 2006 08:51:16 +0000 (00:51 -0800)
committerJunio C Hamano <junkio@cox.net>
Wed, 6 Dec 2006 19:11:58 +0000 (11:11 -0800)
Long-running fetches run inside children to avoid memory leaks.
When we refork, the connection in the parent can be idle for a
long time; attempting to reuse it in the next child can result
in timeouts.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-svn.perl

index d0bd0bdeb8462f7ad4550b5fe406f4e0a1a0ee1c..747daf0181babeae63378a6ec49a8bc4b7f70a0f 100755 (executable)
@@ -459,6 +459,7 @@ sub fetch_lib {
                $min = $max + 1;
                $max += $inc;
                $max = $head if ($max > $head);
+               $SVN = libsvn_connect($SVN_URL);
        }
        restore_index($index);
        return { revision => $last_rev, commit => $last_commit };