diff options
author | Eric Wong <normalperson@yhbt.net> | 2006-12-04 00:51:16 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-12-06 11:11:58 -0800 |
commit | ebdf7b952215946eff863e4da28f924178acea4f (patch) | |
tree | 8cc99088a2431298e2c66c1ee9a5ad01f3940c9f /git-svn.perl | |
parent | 5a4cf3346d6c37007a7f5f94697868a5b2f2fa29 (diff) | |
download | git-ebdf7b952215946eff863e4da28f924178acea4f.tar.gz git-ebdf7b952215946eff863e4da28f924178acea4f.tar.xz |
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 d0bd0bdeb..747daf018 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 }; |