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>
This commit is contained in:
Eric Wong 2006-12-04 00:51:16 -08:00 committed by Junio C Hamano
parent 5a4cf3346d
commit ebdf7b9522

View File

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