Fossil

Check-in [526b0c2997]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Enable client to control how much time skew is allowed before warning. This can be useful if one is not in control of the time on the remote server.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | mistake
Files: files | file ages | folders
SHA3-256: 526b0c29979ce4fe898b9a60a10669481450c686366f083aa29bffcab06a3b13
User & Date: andybradford 2019-10-01 07:09:28.209
Context
2019-10-01
07:13
Enable client to control how much time skew is allowed before warning. This can be useful if one is not in control of the time on the remote server. Patch rejected because accurate timestamps are crucial. Closed-Leaf check-in: 307f7642b5 user: andybradford tags: time-skew-setting
07:09
Enable client to control how much time skew is allowed before warning. This can be useful if one is not in control of the time on the remote server. Closed-Leaf check-in: 526b0c2997 user: andybradford tags: mistake
2019-09-28
20:52
When replying to a Forum Post or Reply, show additional information to provide additional context. This helps if one walks away from the browser before submitting the response. Closed-Leaf check-in: e19dcc1ab1 user: andybradford tags: forum-replies
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/db.c.
3584
3585
3586
3587
3588
3589
3590






3591
3592
3593
3594
3595
3596
3597
*/
/*
** SETTING: th1-uri-regexp   width=40 block-text
** Specify which URI's are allowed in HTTP requests from
** TH1 scripts.  If empty, no HTTP requests are allowed
** whatsoever.
*/






/*
** SETTING: uv-sync          boolean default=off
** If true, automatically send unversioned files as part
** of a "fossil clone" or "fossil sync" command.  The
** default is false, in which case the -u option is
** needed to clone or sync unversioned files.
*/







>
>
>
>
>
>







3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
*/
/*
** SETTING: th1-uri-regexp   width=40 block-text
** Specify which URI's are allowed in HTTP requests from
** TH1 scripts.  If empty, no HTTP requests are allowed
** whatsoever.
*/
/*
** SETTING: time-skew-tolerance   width=25 default=10
** The number of seconds of skew against server time that
** the client will tolerate before issuing a warning.
** The default is 10 seconds.
*/
/*
** SETTING: uv-sync          boolean default=off
** If true, automatically send unversioned files as part
** of a "fossil clone" or "fossil sync" command.  The
** default is false, in which case the -u option is
** needed to clone or sync unversioned files.
*/
Changes to src/xfer.c.
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
    }else{
      manifest_crosslink_end(MC_PERMIT_HOOKS);
      content_enable_dephantomize(1);
    }
    db_end_transaction(0);
  };
  transport_stats(&nSent, &nRcvd, 1);
  if( (rSkew*24.0*3600.0) > 10.0 ){
     fossil_warning("*** time skew *** server is fast by %s",
                    db_timespan_name(rSkew));
     g.clockSkewSeen = 1;
  }else if( rSkew*24.0*3600.0 < -10.0 ){
     fossil_warning("*** time skew *** server is slow by %s",
                    db_timespan_name(-rSkew));
     g.clockSkewSeen = 1;
  }

  fossil_force_newline();
  fossil_print(







|



|







2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
    }else{
      manifest_crosslink_end(MC_PERMIT_HOOKS);
      content_enable_dephantomize(1);
    }
    db_end_transaction(0);
  };
  transport_stats(&nSent, &nRcvd, 1);
  if( (rSkew*24.0*3600.0) > 1.0*db_get_int("time-skew-tolerance", 10) ){
     fossil_warning("*** time skew *** server is fast by %s",
                    db_timespan_name(rSkew));
     g.clockSkewSeen = 1;
  }else if( rSkew*24.0*3600.0 < -1.0*db_get_int("time-skew-tolerance", 10) ){
     fossil_warning("*** time skew *** server is slow by %s",
                    db_timespan_name(-rSkew));
     g.clockSkewSeen = 1;
  }

  fossil_force_newline();
  fossil_print(