From eee69ed12a7129303607fc3e338132a23f23b3f4 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 25 Apr 1999 16:18:42 +0000 Subject: [PATCH] Add useful comment. svn path=/trunk/; revision=2451 --- driver.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/driver.c b/driver.c index 2e123934..6bcaf90c 100644 --- a/driver.c +++ b/driver.c @@ -2194,6 +2194,12 @@ const struct method *proto; /* protocol method table */ totalcount += expunge; if (NUM_SPECIFIED(ctl->fetchlimit) && totalcount >= fetchlimit) break; + + /* + * Allow time for the server lock to release. if we don't + * do this, we'll often hit a locked-mailbox condition and fail. + */ + sleep(3); /* to be _really_ safe, probably need sleep(5)! */ } while (ok == PS_MAXFETCH); -- 2.43.2