From 50d5e7351d5339c4da700a8c2b20e7a5c1992ce8 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 17 Oct 2017 14:12:24 +0200 Subject: [SERVER] Try to connect to different server if proxy cycle is detected --- src/server/globals.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/server/globals.h') diff --git a/src/server/globals.h b/src/server/globals.h index b1740f4..41d52df 100644 --- a/src/server/globals.h +++ b/src/server/globals.h @@ -60,6 +60,7 @@ struct _dnbd3_connection uint32_t recvBufferLen; // Len of ^^ volatile bool shutdown; // signal this thread to stop, must only be set from uplink_shutdown() or cleanup in uplink_mainloop() bool replicatedLastBlock; // bool telling if the last block has been replicated yet + bool cycleDetected; // connection cycle between proxies detected for current remote server int nextReplicationIndex; // Which index in the cache map we should start looking for incomplete blocks at uint64_t replicationHandle; // Handle of pending replication request uint64_t bytesReceived; // Number of bytes received by the connection. -- cgit v1.2.3-55-g7522