Fossil SCM

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.

drh 2008-12-16 18:39 trunk
Commit ba837fd29499a4e740c1c749401f88980fcfdcdb
1 file changed +1 -1
+1 -1
--- src/xfer.c
+++ src/xfer.c
@@ -959,11 +959,11 @@
959959
}
960960
configSendMask = 0;
961961
}
962962
963963
/* Append randomness to the end of the message */
964
-#if 0 /* Enable this after all servers have upgraded */
964
+#if 1 /* Enable this after all servers have upgraded */
965965
zRandomness = db_text(0, "SELECT hex(randomblob(20))");
966966
blob_appendf(&send, "# %s\n", zRandomness);
967967
free(zRandomness);
968968
#endif
969969
970970
--- src/xfer.c
+++ src/xfer.c
@@ -959,11 +959,11 @@
959 }
960 configSendMask = 0;
961 }
962
963 /* Append randomness to the end of the message */
964 #if 0 /* Enable this after all servers have upgraded */
965 zRandomness = db_text(0, "SELECT hex(randomblob(20))");
966 blob_appendf(&send, "# %s\n", zRandomness);
967 free(zRandomness);
968 #endif
969
970
--- src/xfer.c
+++ src/xfer.c
@@ -959,11 +959,11 @@
959 }
960 configSendMask = 0;
961 }
962
963 /* Append randomness to the end of the message */
964 #if 1 /* Enable this after all servers have upgraded */
965 zRandomness = db_text(0, "SELECT hex(randomblob(20))");
966 blob_appendf(&send, "# %s\n", zRandomness);
967 free(zRandomness);
968 #endif
969
970

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button