Only retry transactions which fail from timeout.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-09-09 17:03:34 +00:00
1 parent 31f9bdd799
commit 765866597e
1 file changed
+6 -2
+6 -2
View File
@@ -108,7 +108,9 @@ class xstransact:
try:
return cls.Read(path, *args)
except RuntimeError, ex:
pass
if ex.args[0] == errno.ETIMEDOUT:
pass
raise
SafeRead = classmethod(SafeRead)
@@ -118,6 +120,8 @@ class xstransact:
cls.Write(path, *args, **opts)
return
except RuntimeError, ex:
pass
if ex.args[0] == errno.ETIMEDOUT:
pass
raise
SafeWrite = classmethod(SafeWrite)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.