Commits

Aristarkh Zagorodnikov  committed f9ea4ec

Increased retry timeout to 300ms to prevent hammering server with requests

  • Participants
  • Parent commits bc6809c
  • Branches v0.2

Comments (0)

Files changed (1)

File gridfs/mod_gridfs.cpp

 //	Maximum connect timeout in seconds
 const int MAX_CONNECT_TIMEOUT = 300;
 
+//	Retry timeout in milliseconds
+const int RETRY_TIMEOUT = 300;
+
 //	Module configuration
 struct gridfs_config
 {
 				apr_brigade_destroy(brigade);
 				brigade = 0;
 			}
-			apr_sleep(100000);
+			apr_sleep(RETRY_TIMEOUT * 1000);
 		}
 		if (content_length != 0)
 			ap_set_content_length(request, content_length);