@matheusbsbs / matheus-bagliano / commits / ebdf7b9522
Fork 0

git-svn: avoid network timeouts for long-running fetches

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>

Eric Wong committed Dec 4, 2006 at 00:51 UTC ebdf7b952215946eff863e4da28f924178acea4f
1 file changed +1
git-svn.perl
+1
@@ -459,6 +459,7 @@ sub fetch_lib {
459 $min = $max + 1;
460 $max += $inc;
461 $max = $head if ($max > $head);
462 + $SVN = libsvn_connect($SVN_URL);
463 }
464 restore_index($index);
465 return { revision => $last_rev, commit => $last_commit };