Diff
Not logged in

Differences From:

File src/xfer.c part of check-in [95fab8c60b] - The client-side of a sync uses an adaptive approach to limit the number of "gimme" requests on each HTTP round-trip. This reduces traffic on a large clone. The number of "gimmes" on each round-trip is the larger of 100 or twice the number of files received on the previous cycle. by drh on 2008-01-31 21:54:48. [view]

To:

File src/xfer.c part of check-in [bb3a25e2f0] - Add a configuration option to the Setup/Access page that allows the user to set the xfer download limit. Increase the default xfer download limit to 5 million bytes. Increase the minimum phantom request limit from 100 to 200. by drh on 2008-01-31 22:04:42. Also file src/xfer.c part of check-in [dbdc160161] - Merged with mainline. by aku on 2008-02-02 07:33:03. [view]

@@ -465,9 +465,9 @@
   cgi_set_content_type(g.zContentType);
   blob_zero(&xfer.err);
   xfer.pIn = &g.cgiIn;
   xfer.pOut = cgi_output_blob();
-  xfer.mxSend = db_get_int("max-download", 1000000);
+  xfer.mxSend = db_get_int("max-download", 5000000);
 
   db_begin_transaction();
   db_multi_exec(
      "CREATE TEMP TABLE onremote(rid INTEGER PRIMARY KEY);"
@@ -937,9 +937,9 @@
     nFileRecv = xfer.nFileRcvd + xfer.nDeltaRcvd + xfer.nDanglingFile;
     if( (nFileRecv>0 || newPhantom) && db_exists("SELECT 1 FROM phantom") ){
       go = 1;
       mxPhantomReq = nFileRecv*2;
-      if( mxPhantomReq<100 ) mxPhantomReq = 100;
+      if( mxPhantomReq<200 ) mxPhantomReq = 200;
     }
     nMsg = 0;
     xfer.nFileRcvd = 0;
     xfer.nDeltaRcvd = 0;