diff --git a/docs/examples/imap-multi.c b/docs/examples/imap-multi.c
index ab46d575763060bdf57ba6105eee072f516af596..601205a087931914af8a10160cf72f2db0f2b5a4 100644
--- a/docs/examples/imap-multi.c
+++ b/docs/examples/imap-multi.c
@@ -29,6 +29,8 @@
  * Note that this example requires libcurl 7.30.0 or above.
  */
 
+#define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000
+
 static struct timeval tvnow(void)
 {
   struct timeval now;
diff --git a/docs/examples/pop3-multi.c b/docs/examples/pop3-multi.c
index 46ccf488c021075a5108bb68ac1227ac9bcbe053..d14d1159b2d85466da4f59deb89cafae9ae733c4 100644
--- a/docs/examples/pop3-multi.c
+++ b/docs/examples/pop3-multi.c
@@ -29,6 +29,8 @@
  * Note that this example requires libcurl 7.20.0 or above.
  */
 
+#define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000
+
 static struct timeval tvnow(void)
 {
   struct timeval now;