diff options
author | Eric Wong <normalperson@yhbt.net> | 2006-12-04 11:51:16 +0300 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-12-06 22:11:58 +0300 |
commit | ebdf7b952215946eff863e4da28f924178acea4f (patch) | |
tree | 8cc99088a2431298e2c66c1ee9a5ad01f3940c9f /git-svn.perl | |
parent | 5a4cf3346d6c37007a7f5f94697868a5b2f2fa29 (diff) |
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>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-x | git-svn.perl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git-svn.perl b/git-svn.perl index d0bd0bdeb8..747daf0181 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -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 }; |