diff --git a/src/lib.rs b/src/lib.rs
index 39d386a..e02b80c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -27,10 +27,12 @@ use transfer::Buffered;
const MAX_CHUNK: u32 = 1024 * 1024;
/// One listing may be this large, and so may every listing kept together.
const MAX_LISTING_BYTES: usize = 8 * 1024 * 1024;
+const MAX_STAGE_ATTEMPTS: usize = 64;
thread_local! {
static CONTROL: RefCell