Check-in [ba837fd294]
Not logged in

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

Overview
Comment:Add randomness in the form of a comment to each sync protocol request. This will break older servers which do not understand comments. But comments have been understood by servers for months now, so hopefully everybody has upgraded.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ba837fd29499a4e740c1c749401f88980fcfdcdb
User & Date: drh 2008-12-16 18:39:29.000
References
2008-12-20
01:08 New ticket [62c84f3e60] SQL syntax error checking out a branch. artifact: fcf8161b1a user: anonymous
2008-12-17
22:13 New ticket [f273b440c3] fossil tag cancel has no effect?. artifact: d7cce4b219 user: anonymous
Context
2008-12-19
23:09
update ref page check-in: 10db583adc user: kejoki tags: trunk
2008-12-16
18:39
Add randomness in the form of a comment to each sync protocol request. This will break older servers which do not understand comments. But comments have been understood by servers for months now, so hopefully everybody has upgraded. check-in: ba837fd294 user: drh tags: trunk
18:37
Upgrade SQLite to version 3.6.7. check-in: 458331b99e user: drh tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/xfer.c.
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
        zName = configure_next_name(configSendMask);
        nCard++;
      }
      configSendMask = 0;
    }

    /* Append randomness to the end of the message */
#if 0   /* Enable this after all servers have upgraded */
    zRandomness = db_text(0, "SELECT hex(randomblob(20))");
    blob_appendf(&send, "# %s\n", zRandomness);
    free(zRandomness);
#endif

    /* Exchange messages with the server */
    nFileSend = xfer.nFileSent + xfer.nDeltaSent;







|







957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
        zName = configure_next_name(configSendMask);
        nCard++;
      }
      configSendMask = 0;
    }

    /* Append randomness to the end of the message */
#if 1   /* Enable this after all servers have upgraded */
    zRandomness = db_text(0, "SELECT hex(randomblob(20))");
    blob_appendf(&send, "# %s\n", zRandomness);
    free(zRandomness);
#endif

    /* Exchange messages with the server */
    nFileSend = xfer.nFileSent + xfer.nDeltaSent;