}
#endif
-#define ALLOW_PARTITION
+/* Turn this on to simulate network partitions.
+ * Turn off for production settings. */
+//#define ALLOW_PARTITION
int send_udp_mesh(comm_t *comm, uint32_t id, int sock) {
int result = 0;
}
}
+ partition_count += 1;
+
#endif
toaddr.sin_addr.s_addr = remote->addr; /* Already in network byte order. */
printlog(LOG_WARN, " - The error was |%d|\n", strerror(result));
break;
}
- partition_count += 1;
}
return result;