git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-cvs-import retries
@ 2006-02-17 19:38 Martin Mares
  2006-02-18  7:27 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Mares @ 2006-02-17 19:38 UTC (permalink / raw)
  To: git

Hello!

I am trying git-cvsimport on a rather huge repository and the CVS server
sometimes drops the connection and the whole importing aborts, although
it contains some retrying logic. I've noticed that in the connection closes
I experience, $res ends up being empty instead of undefined. This is tested
by the `server went again' check, but not by the retry check a couple of
lines before.

This patch extends the retry check and makes the symptoms go away.
However, take it with a grain of salt as I don't understand yet why the
connection is aborted.

				Have a nice fortnight
-- 
Martin `MJ' Mares   <mj@ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
A jury consists of 12 persons chosen to decide who has the better lawyer.


Signed-Off-By: Martin Mares <mj@ucw.cz>

--- old/git-cvsimport	2006-02-17 13:02:24.000000000 +0100
+++ new/git-cvsimport	2006-02-17 18:13:06.000000000 +0100
@@ -371,7 +371,7 @@
 
 	$self->_file($fn,$rev) and $res = $self->_line($fh);
 
-	if (!defined $res) {
+	if (!defined $res || $res eq '') {
 	    # retry
 	    $self->conn();
 	    $self->_file($fn,$rev)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-02-18 20:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-17 19:38 git-cvs-import retries Martin Mares
2006-02-18  7:27 ` Junio C Hamano
2006-02-18 13:14   ` Martin Mares
2006-02-18 18:42     ` Junio C Hamano
2006-02-18 20:44       ` [PATCH] Fix retries in git-cvsimport Martin Mares

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).